namespace
# Metadata
2022-06-14 20:43 | namespace | Doriel Rivalet
# Content
An analogy for namespace can be the following:
Imagine a house with 2 rooms, lets call room A std
and room B ourCustomNameSpace
In both rooms there is an object with the same, Television
in a program, if we access the TV using namespace std, we are talking about the TV in room A, but if use namespace ourCustomNameSpace and then access TV, we are talking about the TV in room B.
std::TV
ourCustomNameSpace::TV
TV: it defaults to the first namespace used.
# Sources
Own notes
# Content Lists
If you prefer browsing the contents of this site through a list instead of a graph, you can find content lists here too: