Tag: linkage
3 posts
-
C++ extern Linkage: External vs Internal Linkage, extern "C" and the ODR
C++ extern linkage: external vs internal linkage, extern "C", ODR-safe headers, const globals, namespaces, and explicit template instantiation.
-
static Functions in C++: Class Statics vs File-Scope Statics, Linkage and the ODR
How static functions behave in C++ - class static member functions, file-scope static functions and internal linkage, ODR implications, and their effect on memory layout and performance.
-
C++ Linkage and Storage Duration: extern and static
External, internal and no linkage plus automatic, static, thread-local and dynamic storage in C++: extern, anonymous namespaces, static locals, init order.