0
[DUPLICATE] Namespace
What is the purpose of âusing namespace stdâ?
2 Answers
+ 4
To be able to use the definitions from it, without specifying the namespace explicitly. So instead of:
std::string s("text");
std::cout << s << std::endl;
You're able to write:
using namespace std;
string s("text");
cout << s << endl;