Question about "using" keyword

c++

Solution

using std::string simply imports std::string into the current scope (aka, you can just use 'string' rather than 'std::string') without importing everything from ::std into the current scope.

edit: clarification after comment.

Problem

I'm well aware of using namespaces however, every now and then I'm stumbling upon a using, which uses a specific class. For instance : ``` #include <string> using namespace std; (...) ``` However - every now and then, I'm seeing : ``` using std::string; ``` How should I interpret the "using" in this case ? Cheers

Original source