20.7 Name Spaces
- Mechanism to avoid naming conflicts:
- Consider a programmer who creates a map class, e.g., for
a computer game
- There is already a map class in the STL
- But, all the STL classes are in the std namespace
- Can reference std::map explicitly
- Could alternatively (or additionally) put the other map
class in another namespace
prev
|top
|next