using-declaration
A way to use all the unqualified names in a C++0x enum class?
The new C++ (C++0x or C++11) has an new kind of enum, an \"enum class\" where the names are scoped to the enum (among other things).[详细]
2023-04-05 08:48 分类:问答C++ using keyword
What is the difference between these two usage of using keyword: using boost::shared_ptr; and using namespace 开发者_开发百科boost;[详细]
2023-03-26 17:17 分类:问答C++ using statement in member function scope
If I want to use a member of a template base class from a template derived class, I have to bring it into scope as such:[详细]
2023-02-12 21:24 分类:问答Is a using-declaration supposed to hide an inherited virtual function?
struct level0 { virtual void foo() = 0; }; struct level1 : level0 { virtual void foo() { cout <<\" level1\" << endl; }[详细]
2023-02-04 00:59 分类:问答Using declaration (Derived class)
struct B1{ int d; void fb(){}; }; struct B2 : B1{ using B1::d; using B1::fb; int d;// why this gives error? void fb(){}// and this does not?[详细]
2023-01-12 11:48 分类:问答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 hidden. From that point of view it is only a mechanism for making accessib[详细]
2022-12-16 22:00 分类:问答