Last Updated: May 22, 2026
Template metaprogramming (TMP) is the practice of computing things at compile time using C++ templates, type traits, and constexpr. This lesson is an intro tour, not a deep dive. The goal is enough vocabulary to read modern TMP code, understand legacy TMP code, and know where to look deeper if needed.