User:Feixie/C++

Code Grocery

 * useful functions & libs

Tools

 * c++filt to de-mangle c++ names

Learn

 * effective c++
 * more effective c++

namespace
namespace Vender1 {class String{};} namespace Vender2 {class String{};} A using directive: using namespace X; says that all the names in namespace X are AVAILABLE for use, but NONE of them are actually declared or introduced. A using declaration, on the other hand, actually INTRODUCE a name into the current scope. So saying: using namespace Vendor1; using namespace Vendor2; makes String available for use, but doesn't declare them. no compiler error. Saying: using Vendor1::String; using Vendor2::String; actually introduces Vendor2::String into the current scope as a declaration. will trigger a "duplicate declaration" compiler error.
 * using directive
 * like typedef, public/private affect it.
 * an alternative of static

Template
Template Recurring

Refs
[Weak Symbol]