~/talk

C++20 Ranges - The Stuff of Science Fiction

Talkat ACCU 2025 · 2025-04-01..04-04· [c-and-cpp]
links:none on file
slides:none on file

C++20 ranges popularize a pattern of using static inline const function objects as range adapters that let code overload the call operator (something lambdas cannot do), implement filters/transforms, and serve as lightweight customization points. The video shows actual code patterns, cites Eric Niebler’s nebloid and the broader customization point object idea, argues naming options like “sci‑fi pattern” or “unclassified function object,” and explains when static/inline/constexpr matter.

AI-written summary · about

  1. 0:00Introduction: Why C++ is Fun
  2. 0:12Discovering Ranges in C++20
  3. 0:23Filtering with Static Casts
  4. 0:44Introducing the Design Pattern
  5. 1:08Using Function Objects Instead of Lambdas
  6. 1:40The Problem with Naming
  7. 2:04Reviewing Existing Names: Nebloid and Beyond
  8. 2:30Identifying the Pattern Across Range Adapters
  9. 3:00From Functors to Sci-Fi
  10. 3:36The Case for Better Naming
  11. 4:01The “Unclassified Function Object”
  12. 4:20The Sci-Fi Analogy and Party Defense Mechanism
~/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.