~/talk

23 Ranges: slide & stride

Talkat CppCon 2019 · 2019-09-15..09-20· [compilers-and-language-design]
slides:none on file

Three proposed C++23 range adaptors expose a two-parameter signature (size and range) and produce a range of ranges: sliding (overlapping windows), chunk (nonoverlapping blocks with a final partial block), and stride (every kth element). Examples show k=4 on 0..9 and the exact outputs, and the talk demonstrates that Kotlin’s windowed maps to these by choosing size and step so chunk/sliding/stride are implementable from one general primitive. It surveys cross‑language names and argues for slide/windowed consistency and references range‑v3 and GitHub examples.

AI-written summary · about

  1. 0:00Introduction to Algorithms
  2. 0:39Functionality and Examples
  3. 1:54Cross-Language Comparisons
  4. 3:01Naming Consistency Discussion
  5. 4:26Proposal 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.