~/talk

the Concepts of concepts

Talkat Meeting C++ 2021 · 2021-11-10..11-12· [rust]
slides:none on file

Explains that C++20 concepts complete templates by letting code declare and enforce interface and semantic constraints at the signature level, improving diagnostics and reuse; shows four syntaxes (requires, trailing requires, constrained parameter, abbreviated function templates), uses cppinsights to inspect compilation lowering, demonstrates examples (a number concept refined to exclude bool/char, car/convertible and clonable checks that catch copy‑paste bugs, an encode utility) and warns about negation/subsumption pitfalls and that the standard supplies ~50 standard concepts.

AI-written summary · about

  1. 0:00Start
  2. 0:02Agenda
  3. 0:34Why Do We Need Something like Concepts
  4. 8:22Concepts Are an Extension for Templates
  5. 14:59Trailing Requires Close
  6. 21:05Abbreviated Function Templates
  7. 21:38Concepts with Classes
  8. 27:54Semantic Requirements
  9. 36:41How To Find the Most Constrained Constraint
  10. 41:53Wishful Writing
  11. 42:56Compound Requirements
  12. 45:43Nested Template Specializations
  13. 46:11Type Requirement
  14. 46:55Requirements on the Alias Template Specializations
  15. 51:17Examples
  16. 53:44Utility Functions
  17. 53:54Template Parameters
  18. 57:32Conclusion
  19. 58:27Call to Action
~/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.