23 Ranges: slide & stride
summary
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
chapters (5)
- 0:00Introduction to Algorithms
- 0:39Functionality and Examples
- 1:54Cross-Language Comparisons
- 3:01Naming Consistency Discussion
- 4:26Proposal and Conclusion
related talks
46mMeandering Through C++ Creating ranges::to
01h 36mImplementing Ranges and Views in C++
56mThrowing Tools at Ranges
01h 30mNew Algorithms in C++23
38mWhat's New In C++23
01h 14mReintroduction to Generic Programming for C++ Engineers
47mA Journey into Ranges, Views, Pipelines, and Currying
59mHow to Implement the C++ Standard Library (Part 2): An Excursion into libc++
