Book description
The new C++11 standard allows programmers to express ideas more clearly, simply, and directly, and to write faster, more efficient code. Bjarne Stroustrup, the designer and original implementer of C++, has reorganized, extended, and completely rewritten his definitive reference and tutorial for programmers who want to use C++ most effectively.
The C++ Programming Language, Fourth Edition, delivers meticulous, richly explained, and integrated coverage of the entire language—its facilities, abstraction mechanisms, standard libraries, and key design techniques. Throughout, Stroustrup presents concise, “pure C++11” examples, which have been carefully crafted to clarify both usage and program design. To promote deeper understanding, the author provides extensive cross-references, both within the book and to the ISO standard.
New C++11 coverage includes
Support for concurrency
Regular expressions, resource management pointers, random numbers, and improved containers
General and uniform initialization, simplified for-statements, move semantics, and Unicode support
Lambdas, general constant expressions, control over class defaults, variadic templates, template aliases, and user-defined literals
Compatibility issues
Topics addressed in this comprehensive book include
Basic facilities: type, object, scope, storage, computation fundamentals, and more
Modularity, as supported by namespaces, source files, and exception handling
C++ abstraction, including classes, class hierarchies, and templates in support of a synthesis of traditional programming, object-oriented programming, and generic programming
Standard Library: containers, algorithms, iterators, utilities, strings, stream I/O, locales, numerics, and more
The C++ basic memory model, in depth
This fourth edition makes C++11 thoroughly accessible to programmers moving from C++98 or other languages, while introducing insights and techniques that even cutting-edge C++11 programmers will find indispensable.
This book features an enhanced, layflat binding, which allows the book to stay open more easily when placed on a flat surface. This special binding method—noticeable by a small space inside the spine—also increases durability.
Table of contents
- About This eBook
- Title Page
- Copyright Page
- Contents
- Preface
- Preface to the Third Edition
- Preface to the Second Edition
- Preface to the First Edition
-
Part I: Introduction
- 1. Notes to the Reader
- 2. A Tour of C++: The Basics
- 3. A Tour of C++: Abstraction Mechanisms
- 4. A Tour of C++: Containers and Algorithms
- 5. A Tour of C++: Concurrency and Utilities
-
Part II: Basic Facilities
- 6. Types and Declarations
- 7. Pointers, Arrays, and References
- 8. Structures, Unions, and Enumerations
- 9. Statements
- 10. Expressions
- 11. Select Operations
- 12. Functions
- 13. Exception Handling
- 14. Namespaces
- 15. Source Files and Programs
-
Part III: Abstraction Mechanisms
-
16. Classes
- 16.1. Introduction
-
16.2. Class Basics
- 16.2.1. Member Functions
- 16.2.2. Default Copying
- 16.2.3. Access Control
- 16.2.4. class and struct
- 16.2.5. Constructors
- 16.2.6. explicit Constructors
- 16.2.7. In-Class Initializers
- 16.2.8. In-Class Function Definitions
- 16.2.9. Mutability
- 16.2.10. Self-Reference
- 16.2.11. Member Access
- 16.2.12. [static] Members
- 16.2.13. Member Types
- 16.3. Concrete Classes
- 16.4. Advice
- 17. Construction, Cleanup, Copy, and Move
- 18. Operator Overloading
- 19. Special Operators
- 20. Derived Classes
- 21. Class Hierarchies
- 22. Run-Time Type Information
- 23. Templates
- 24. Generic Programming
- 25. Specialization
- 26. Instantiation
- 27. Templates and Hierarchies
- 28. Metaprogramming
- 29. A Matrix Design
-
16. Classes
-
Part IV: The Standard Library
- 30. Standard-Library Overview
- 31. STL Containers
- 32. STL Algorithms
- 33. STL Iterators
- 34. Memory and Resources
- 35. Utilities
- 36. Strings
- 37. Regular Expressions
- 38. I/O Streams
- 39. Locales
- 40. Numerics
- 41. Concurrency
- 42. Threads and Tasks
- 43. The C Standard Library
- 44. Compatibility
- Preparation for Programming in the Real World
- Index
Product information
- Title: The C++ Programming Language, Fourth Edition
- Author(s):
- Release date: May 2013
- Publisher(s): Addison-Wesley Professional
- ISBN: 9780133522884
You might also like
book
Learning Python, 5th Edition
Get a comprehensive, in-depth introduction to the core Python language with this hands-on book. Based on …
book
Python Crash Course, 2nd Edition
This is the second edition of the best selling Python book in the world. Python Crash …
book
Fundamentals of Software Architecture
Salary surveys worldwide regularly place software architect in the top 10 best jobs, yet no real …
book
Head First Design Patterns, 2nd Edition
You know you don’t want to reinvent the wheel, so you look to design patterns—the lessons …