Summary
This episode concludes Jason's mini-series on C++23's new ranges views, focusing on chunk_view and stride_view. The chunk_view divides a range into sub-ranges of a specified size (unlike slide_view which creates overlapping windows), handling partial chunks when the range size isn't evenly divisible by the chunk size. Jason also briefly mentions stride_view, which skips elements at regular intervals, and provides a quick overview of other C++23 range views like chunk_by, split, join, and adjacent_transform, highlighting the composability of these views for processing container data.
Related C++ Standard Sections
This episode covers topics found in these sections of the C++ standard:
-
[range.view]62% match -
[range.as.const.view]58% match -
[range.chunk.by.view]48% match -
[range.drop.view]48% match -
[range.split.view]47% match -
[range.lazy.split.view]46% match -
[range.split]46% match -
[range.take.view]46% match -
[range.reverse.view]46% match -
[range.adjacent.view]45% match - + 2 more related sections