wat is namespace std

closed account (i2v7M4Gy)
"all the elements of the standard C++ library are declared within wat is called a namespace,the namespace with the name std" Please explain this.Wat the namespace std include?
I'm not one hundred percent sure about how much is used with the namespace std, but one example is cout and cin.

without using namespace std, you would have to write std::cout and std::cin
The std namespace contains every function, class or object from the C++ standard library
eg: cout, vector ....

Everithing documented at http://www.cplusplus.com/reference/ is in the std namespace

http://www.cplusplus.com/doc/tutorial/namespaces.html
Topic archived. No new replies allowed.