Start here · Essential guide
Template Metaprogramming in C++
Learn how C++ template metaprogramming runs code at compile time, with examples of recursive templates, type traits, if constexpr and concepts.
Classes and Design
How templates run code at compile time and how this differs from the C preprocessor.
Start here · Essential guide
Learn how C++ template metaprogramming runs code at compile time, with examples of recursive templates, type traits, if constexpr and concepts.
C and C++ are related languages with separate standards. Learn how they differ in syntax, keywords, the standard library and how code is compiled.
__FILE__ and __LINE__ are predefined macros that give the source file name and line number at compile time. Learn how to log with them in C and C++.
The preprocessor runs before compilation, handling #include, #define and conditional lines. Learn how it works, with macro examples and common pitfalls.
C is a compiled, general-purpose language from the 1970s, still used for operating systems and embedded devices. Learn its basics and how it relates to C++.
Related topics