Template meta-programming: Why you must get it
summary
Asserts that templates are a practical tool not academic showmanship and demonstrates a working array view with recursive slicing used to build and parse embedded TCP‑like frames without heap allocations, plus a prototype for named tuples accessed by string keys implemented via a compile‑time hash map and a macro workaround because string literal templates are limited. Provides code that compiles online, measures compile‑time tradeoffs, and argues for a C++11‑first metaprogramming core before adding C++14/17 sugar.
AI-written summary · about
chapters (20)
- 0:00Intro
- 1:25Use cases
- 2:41Who is Manuel
- 3:41Work
- 4:51Templates
- 6:37Metaprogramming
- 8:14Definition of programmer
- 8:54Examples
- 13:00Review
- 14:47Transparency realization
- 16:01Progressive slicing
- 21:16Suppose example
- 25:16String literal
- 26:17String macro
- 27:11Map
- 27:48Lockup
- 29:54Mapping
- 35:54GitHub
- 36:11Alternative metaprogramming libraries
- 40:07Complex metaprogramming
related talks
01h 39mKeynote - C++ Metaprogramming: evolution and future direction
55mHow bad is meta-programming still today?
54mModern Template Techniques
40mAn inspiring introduction into Template Meta Programming
59mModern Template Metaprogramming: A Compendium, Part II
05mLightning Talk: MP: Template Meta-Programming in C++
56mboost.tmp: your DSL for Metaprogramming
01h 07mBack to Basics: Templates (part 2 of 2)
