~/talk

C++20 Templates - the Next Level: Concepts and More

slides:none on file

Walks through C++20 features with concrete code: converts a variadic add implementation from SFINAE to Concepts using a reusable edible concept and tested it with static_assert plus small template stubs, shows requires expressions that check operator+, noexcept and return type, demonstrates abbreviated function templates (no template head), conditional destructor via trailing requires, conditional explicit, NTTPs for floats and class types with a fixed_string NTTP example, and templated lambdas; compiler diagnostics improve and examples compile as shown.

AI-written summary · about

  1. 0:00Start
  2. 16:12Application areas for Concepts
  3. 31:08Compound requirement
  4. 41:40Testing the created concept
  5. 44:41Abbreviated function templates
  6. 49:42Dependent destructor
  7. 55:04Conditional explicit
~/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.