~/talk

From C++ Templates to C++ Concepts - Metaprogramming: an Amazing Journey

Talkat CppCon 2022 · 2022-09-11..09-16· [rust]
links:none on file
slides:none on file

Traces template metaprogramming from C++98 to C++20 and implements a working container detector first with SFINAE, tag dispatch, enable_if, void_t, declval and type_traits then with C++20 requires/Concepts. Shows exact code patterns (partial specialization, variadic templates, constexpr if, deduction guides), compares error messages, notes Concepts make the is_container predicate far shorter and more debuggable, reports compilation-time cost increases, and demonstrates that the C++20 concept version successfully replaces the long enable_if plumbing.

AI-written summary · about

  1. 0:00Introduction
  2. 0:44Speaker background
  3. 1:40Template overview
  4. 2:50Function templates
  5. 4:30Overloading resolution
  6. 6:10Class templates
  7. 6:49Type traits
  8. 10:06Modern trait aliasing
  9. 11:13Tag dispatching
  10. 12:39Compile time branching
  11. 13:08Constrained auto
  12. 14:25Container detection
  13. 16:22Ellipsis usage
  14. 18:27Enable if
  15. 20:58C++17 container detection
  16. 21:34Variadic templates
  17. 23:17Void t
  18. 24:13Advanced container detection
  19. 31:42Metaprogramming challenges
  20. 32:37C++20 concepts
  21. 36:03Concept requirements
  22. 37:50Refining container concept
  23. 41:14Concept usage
  24. 43:40Conclusion
  25. 45:48Q&A
~/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.