0

What is use of name space std ??

14th Nov 2016, 7:07 PM
Shiv Dutt
Shiv Dutt - avatar
2 Answers
+ 1
well everything in standard C++ library is in this namespace. It makes moving through the classes easier (since you can call std:: and you see all functions/classes). Also it can save you many errors. For example if you'd like to have your own "cout" class it would collide with C++ standard cout. But since you have to call std:: first there will be no error.
14th Nov 2016, 7:51 PM
Jakub Stasiak
Jakub Stasiak - avatar
0
thanks @jakub stasiak
15th Nov 2016, 2:46 PM
Shiv Dutt
Shiv Dutt - avatar