Lightning Talk: C++20 - A New Way of Meta-Programming?
summary
Five concrete C++20 techniques for template metaprogramming: compile-time branching with requires/constraints and if constexpr that selects overloads, immediately-invoked lambda unrolling to expand index sequences in place, NTTP support for string template parameters to pass string literals into templates, tuple-like deconstruction via structure-binding-to-pack / tuple conversion and using concepts plus constexpr transforms to write metaprograms that mirror runtime pipelines and even generate faster compile-time alternatives.
AI-written summary · about
chapters (5)
related talks
07mLightning Talk: Higher-Order Template Metaprogramming with C++23
01h 11mC++20 Templates: The next level: Concepts and more
01h 03mTemplates Made Easy with C++20
01h 03mTemplate-less Metaprogramming in C++
01h 03mTemplate Metaprogramming: Practical Application
01h 01mBack to Basics: Concepts in C++
01h 04mC++ Concepts
01h 05mGeneric Programming with Concepts Lite, Part II
