December 1998
Intermediate to advanced
624 pages
13h 8m
English
![]()
This chapter covers the basic material on namespaces.
The purpose of namespaces is to reduce the number of name clashes that occur with multiple, independently developed libraries. In the early days of C++, this was not as big a problem because there weren't as many C++ libraries as there are today. This situation changed about the time that the standard template library was formalized, and today the large number of class libraries and frameworks on the market accentuates the need for a mechanism to resolve name conflicts.
The original goal for namespaces was to have an ...
Read now
Unlock full access