~/talk

Back to Basics: Concepts in C++

Talkat CppCon 2024 · on Wednesday, 2024-09-18· at 14:00· Maple 3/4/5, 6700 North Gaylord Rockies Boulevard· [typescript]
slides:none on file

Explains how C++20 concepts name concrete requirements and use requires clauses to fix real problems — e.g. two add overloads resolved by a has_push_back concept, handling references via remove_cvref or range element utilities, and constraining Auto parameters. Demonstrates combining constraints, subsumption hierarchies, using compile-time if for alternate bodies, member and non-type (prime) constraints, notes measurable compile-time cost and varying error-message quality across compilers. compile-time if

AI-written summary · about

  1. 0:00Introduction to concepts
  2. 3:30Defining and using concepts
  3. 8:16Concept constraints and testing
  4. 11:22Abbreviated function templates
  5. 14:21Requires clauses and type traits
  6. 18:57Multi-parameter concepts
  7. 25:24Standard library ranges and constraints
  8. 29:36Requires expression vs clause
  9. 32:29Compile-time ifs and better errors
  10. 38:02Concept subsumption and hierarchies
  11. 46:17Semantic requirements
  12. 50:21Class templates and parameters
  13. 56:43Q&A and conclusion
~/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.