~/talk

the Concepts of concepts

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

Shows exactly how C++20 concepts replace ad hoc overloads and static_asserts by writing concrete constraints: builds a number concept that forbids bool/char, implements constrained functions via abbreviated function templates and requires-clauses, and models class constraints with a car/convertible example and a clonable nested-requires case that catches a copy‑paste bug. Demonstrates compiler behavior (improved error messages, subsumption rules, negation pitfalls), uses standard concepts from the library, and shows which examples compile and which are ambiguous.

AI-written summary · about

  1. 0:00Start
  2. 0:06Agenda
  3. 0:51Why Do We Need Something like Concepts
  4. 15:16Trailing Requires Close
  5. 21:22Abbreviated Function Templates
  6. 31:10Combining Concept
  7. 36:58How To Find the Most Constrained Constraint
  8. 42:10Wishful Writing
  9. 43:13Compound Requirements
  10. 46:00Nested Template Specializations
  11. 51:34Examples
  12. 54:01Utility Functions
  13. 54:11Template Parameters
  14. 57:49Conclusion
  15. 58:44Call 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.