In my class, we have been learning about the standard template library, and how you have to use std::
when using objects from the library, so the compiler knows you are specifying the standard namespace. For example, std::string
That's understandable. Recently though, I have been seeing objects and types specified with string::
. What exactly does the string::
mean? Is it part of some sort of string namespace? Why do you have to specify something that is already specified as part of the standard namespace, i.e the std::string
. Also, where is the global namespace defined, and how does correlate with the standard namespace?
Thanks.