Chapter 4. General Concepts

This chapter describes the fundamental C++ standard library concepts that you need to work with all or most components:

• The namespace std

• The names and formats of header files

• The general concept of error and exception handling

• Callable objects

• Basic concepts about concurrency and multithreading

• A brief introduction to allocators

4.1. Namespace std

If you use different modules and/or libraries, you always have the potential for name clashes. This is because modules and libraries might use the same identifier for different things. This problem was solved by the introduction of namespaces to C++. A namespace is a certain scope for identifiers. Unlike a class, a namespace is open for extensions that might ...

Get C++ Standard Library, The: A Tutorial and Reference, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.