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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With