~/talk

C++ Templates Revised

Talkat ACCU 2018 · 2018-04-11..04-14· [compilers-and-language-design]
slides:none on file

Second edition updates cover 14 years and three major C++ versions and show concrete changes: use of auto return deduction and when it hides lifetime bugs (example: string_view concatenation UB from implicit conversions), new template tools (fold expressions to avoid recursive instantiation and speed compile times, NTTP with auto for string separators), generic lambdas plus deduction guides to build an overloaded visitor, constexpr extended for real compile‑time computation, and requires/concepts replacing many enable_if workarounds.

AI-written summary · about

  1. 0:00Introduction
  2. 3:00Type trades
  3. 4:24Autotypes
  4. 5:41Return Types
  5. 9:42StringView
  6. 10:47StringView Problems
  7. 24:16Return Type Auto
  8. 26:43Template Overload
  9. 28:59Fold Expressions
  10. 35:04String Template Parameters
  11. 36:55Auto Template Parameters
  12. 39:09DecoType Auto
  13. 40:56Lambdas
  14. 42:32Function Objects
  15. 43:36Templates
  16. 45:17lambda
  17. 48:01function object
  18. 49:21deduction guides
  19. 50:59aggregates
  20. 52:06Context
  21. 53:49Prime Numbers
~/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.