Nested Namespaces

C++17 has restructured the way we write nested namespaces, making the syntax more readable.

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 called Compress() and Decompress():

Get hands-on with 1200+ tech skills courses.