~/talk

Who's Afraid of the Big Bad Template?

Talkat Core C++ 2025 · on Sunday, 2025-10-19· [c-and-cpp]
links:none on file
slides:none on file

Claim: templates, including NTTPs and TTPs, can replace repetitive runtime containers and drive entire data structures at compile time. Builds a grocery example that evolves from 5- and 10-item baskets to a 50-item cart, using std::array, std::tuple-like std::tuple access with std::get, fold expressions, UDLs and constexpr constructors to create compile-time groceries, bags and a compile-time cart whose total is computed in a static_assert — a working proof that templates handle this use case.

AI-written summary · about

  1. 0:00Introduction
  2. 2:13Why developers fear templates
  3. 5:06Templates vs metaprogramming
  4. 6:08NTP vs TTP explained
  5. 8:12NTP restrictions and limitations
  6. 11:29Creating compile-time structures
  7. 12:52Implementing grocery interfaces
  8. 14:21Building compile-time carts
  9. 16:32User-defined literals demo
  10. 18:42Full compile-time program goal
  11. 19:05Switching to compile-time containers
  12. 20:31Using std::tuple for type diversity
  13. 22:18Compile-time cart implementation
  14. 24:05Calculating total cost at compile time
  15. 25:31Generating receipt with fold expressions
  16. 26:56Final compile-time UDL adjustments
  17. 27:39Summary and conclusion
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.