Top "Using-declaration" questions

Use this tag for questions related to the 'using' keyword in C++.

What is the difference between 'typedef' and 'using' in C++11?

I know that in C++11 we can now use using to write type alias, like typedefs: typedef int MyInt; Is, …

c++ c++11 typedef using-declaration
c++ using declaration, scope and access control

Typically the 'using' declaration is used to bring into scope some member functions of base classes that would otherwise be …

c++ scope access-control using-declaration
using directive vs using declaration swap in C++

Please refer to the code below: #include <algorithm> namespace N { template <typename T> class C { public: …

c++ swap using-directives using-declaration
A 'using' declaration with an enum

A using declaration does not seem to work with an enum type: class Sample{ public: enum Colour {RED, BLUE, GREEN}; } …

c++ enums using-declaration
C++ using keyword

What is the difference between these two usage of using keyword: using boost::shared_ptr; and using namespace boost;

c++ namespaces using-declaration