O'Reilly logo

The C++ Standard Library: A Tutorial and Reference, Second Edition by Nicolai M. Josuttis

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required