Template Metaprogramming: Practical Application
summary
Tutorial shows concrete claims and tools not platitudes it demonstrates managing types as lists and maps and trading an upfront compile time cost for faster runtime by building a custom std::void_t vs indirect alias to avoid duplicate overload failures across compilers it uses Clang’s -ftime-trace JSON profiling and SpeedScope to measure compile cost and reports running ~80 implementation variants with specific results including an inheritance based lookup that is 20% faster inheritance trick for certain sizes and a type sorting/normalization that compiles and works across tested cases
AI-written summary · about
chapters (15)
- 0:00Intro
- 1:00Voidt
- 8:15Voidt Implementation
- 18:00Practical Application
- 23:40Compile Times
- 25:20Measure
- 30:30Scope Trace
- 31:48Compilation Times
- 33:45Linear Search
- 37:35Performance
- 39:00Inheritance
- 45:01Base of
- 49:53Books
- 50:58Impul
- 56:28Type ID
related talks
01h 03mTemplate-less Metaprogramming in C++
06mLightning Talk: C++20 - A New Way of Meta-Programming?
07mLightning Talk: Higher-Order Template Metaprogramming with C++23
57mTemplate Shenanigans
01h 03mTemplates Made Easy with C++20
59mCute C++ Tricks, Part 2.5 of N - Code You Should Learn From & Never Write
51mTypeScript - Beyond the Basics
01h 10mType Deduction and Why You Care
