~/talk

Ranges++: Are Output Range Adaptors the Next Iteration of C++ Ranges?

Talkat CppCon 2024 · on Friday, 2024-09-20· at 13:30· Adams A, 6700 North Gaylord Rockies Boulevard· [typescript]
links:none on file
slides:none on file

Claims that output-range (push) adaptors eliminate the double-invocation TASI by merging increment+dereference into a single push_value customization point, with a working prototype called Daisy chains (~70 lines, godbolt link provided) that reproduces behavior but reduces extra calls (example: transform invoked 5 times instead of 7). The prototype implements right-associative composition, a stop signal for take_while via a push_result, and works for most adapters but fails or becomes awkward for multipass ops like reverse or sort and makes type propagation harder.

AI-written summary · about

  1. 0:00Introduction
  2. 3:39Problem with TASI in ranges
  3. 8:41Analyzing transform and filter views
  4. 22:42Filter view calls transform twice
  5. 29:56Eager evaluation in operator++
  6. 35:18Push versus pull programming
  7. 41:41Implementing push-style pipeline
  8. 50:15Operator composition with mixins
  9. 54:30Verifying solution with benchmarks
  10. 57:22Limitations of push-style models
  11. 1:00:32Future of output range adaptors
  12. 1:01:58Q&A
~/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.