Using Namespaces
Explore how to manage namespaces in C++ to correctly apply using declarations and directives, avoid naming conflicts, and use namespace aliases for clarity. Understand best practices to safely include standard libraries and prepare your code for building executables.
We'll cover the following...
We'll cover the following...
If you use qualified names, you have to use them exactly as defined. For each namespace you must put the scope resolution operator ::. More libraries of the C++ standard library use nested namespaces.
Unqualified Use of Names
You can use names in C++ with the using declaration and the using directive.
Using Declaration
A using declaration adds a name to the visibility scope, in which you applied the using ...