It is a feature in C++ to reduce name collisions in the global name space. This namespace keyword assigns a separate name to a library that allows other libraries to use the similar identifier names without creating any name collisions. Furthermore, the compiler uses the namespace signature for differentiating the definitions.