~/talk

C++20 Templates: The next level: Concepts and more

Talkat CppCon 2021 · on Monday, 2021-10-25· at 09:00· Online C, online· [typescript]
slides:none on file

Shows concrete, actionable detail: how requires expressions and a new concept keyword replace SFINAE patterns, examples that enforce same-type, noexcept and return-type constraints, and compile-time tests using static_assert. Demonstrates non-type template parameters with fixed_string (compile-time string NTTPs), templated lambdas with template heads, abbreviated function templates, and an assembly/Compiler Explorer peek to prove distinct manglings for +0.0 vs -0.0. Expects working code snippets and measurable improvements in diagnostics.

AI-written summary · about

  1. 0:00Introduction
  2. 3:30German
  3. 4:25Concepts
  4. 7:08Motivation
  5. 8:36Createout
  6. 14:06Application areas
  7. 16:30Requirements
  8. 19:46Requires Expression
  9. 22:16Requirements Expression
  10. 22:52Simple Requirement
  11. 24:08Nested Requirement
  12. 25:53Compound Requirement
  13. 28:44Adhoc constraint
  14. 30:16Edible constraint
  15. 31:51Testing concepts
  16. 32:56Testing framework
  17. 34:00Function templates
  18. 36:10Auto
  19. 38:05Better error messages
  20. 42:46Type requirements
  21. 44:41Static assert
  22. 46:15Invalid type
  23. 47:17Template parameters
  24. 48:26Example in C
  25. 49:51Fixed String
  26. 50:59Fixed String Container
  27. 52:11Lambdas with Template Head
  28. 57:03Questions
~/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.