Tag: Namespace
3 posts
-
C++ Namespaces: using-Declarations vs Directives, Anonymous Namespaces and ADL
C++ namespaces explained: avoiding name collisions, using-declarations vs using-directives, nested namespaces, anonymous namespaces, aliases, ADL.
-
C++ inline Namespace: Versioning, API Evolution, and ADL
How C++11 inline namespaces lift names into the parent, why the version stays in mangled symbols, and how lookup, specialization and ADL treat them.
-
C++ ADL (Argument-Dependent Lookup): Namespaces & Operators
Argument-dependent lookup in C++: finding functions in associated namespaces, swap idiom, operator overloads, pitfalls, and disabling ADL.