~/talk

Modern Template Metaprogramming: A Compendium, Part I

Talkat CppCon 2014 · on Tuesday, 2014-09-09· at 14:00· Pascal· [c-and-cpp, compilers-and-language-design]
links:none on file
slides:none on file

Demonstrates concrete template techniques and reproduces standard-library facilities: type traits like rank and remove_const, alias helpers (_t and _v), SFINAE via enable_if and conditional, and compile-time recursion for gcd and pow at compile time. Measures show the meta versions beat runtime pow for x^50 (historic tests report ~47% then ~90% improvement across optimizations). Introduces void_t as a practical new trait and shows how these tools are composed to build working, measurable compile-time components.

AI-written summary · about

  1. 0:00Template metaprogramming intro
  2. 16:03Compile-time examples
  3. 23:53Recursion with meta functions
  4. 27:22Meta functions on types
  5. 30:14Standard library type meta functions
  6. 36:39Compile-time conditionals
  7. 42:25SFINAE explained
  8. 48:54Overloads with enable_if
  9. 51:08Concepts vs enable_if
  10. 53:46Value-returning meta functions
  11. 56:14Meta function syntax evolution
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.