From Jason Turner
Watch on YouTube

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.

Resources

Tags