where is "namespace std" defined

Jul 7, 2009 at 12:32pm
Hello everyone.

I am wondering what is exactly in "namespace std", so I want to find out where it is.

Thanks for your help.
Jul 7, 2009 at 12:56pm
In the std namespace are all the standard symbols ( std means standard )
Everything declared in the C++ standard headers ( eg <iostream> <string> etc ) is in the std namespace
Jul 7, 2009 at 7:57pm
The whole std namespace is NOT defined in one particular file/header.
Namespaces are open - this means you can add to them.
Each header file in the standard c++ library add it's particular stuff to the std namespace.
So #include <vector> will add the vector related bits.
Jul 8, 2009 at 7:03am
Oh, I understand. Thanks!
Topic archived. No new replies allowed.