Ad
  • Custom User Avatar

    Good explanation! I like the mention of how you can just use using std:: without having to worry about any issues.

  • Custom User Avatar

    Yes, but it's generally viewed as bad practice because of namespace pollution (everything inside the std namespace gets inside the global namespace, and that leads to all sorts of problems), and I personally prefer to be explicit and just manually type the namespace.

    As an alternative that won't polute the global namespace, you can use using std::something;, it does the same thing, but only to the objects you specify.