Search⌘ K

Nested Namespaces

Explore the new nested namespace syntax introduced in C++17 that simplifies grouping types and functions within multiple layers. Understand how this feature improves code readability and ease of use, especially for developers familiar with C# or Java, and see practical examples from the C++ Standard Library.

We'll cover the following...

Namespaces allow grouping types and functions into separate logical units.

For example, it’s common to see that each type or function from a library XY will be stored in a namespace xy. Like in the below case, where there’s SuperCompressionLib and it exposes functions ...