How can I distinguish between "using-declaration" and "using directive" in C++? What are the main differences between "using-declaration" and "using directive"? Could somebody make it clear by giving some simple examples? I would be grateful to have some help with this question.
Asked
Active
Viewed 199 times
0
-
1https://en.cppreference.com/w/cpp/keyword/using – Jesper Juhl Jun 03 '20 at 05:20
1 Answers
2
As description in https://en.cppreference.com/w/cpp/keyword/using
using-directives for namespaces and using-declarations for namespace members
using namespace std; // using-directive
using std::string; // using-declaration

where23
- 483
- 3
- 9