Šimon Tóth’s Post

View profile for Šimon Tóth

C++ Educational Content Creator | 20 years of Software Engineering experience distilled into digestible daily posts

The C++23 std::views::chunk produces a view of sub-ranges spanning the provided number of elements each. If the source range cannot be divided without a remainder, the last element in the range will be a shorter subrange that contains the remainder of the elements. The view works for input ranges and will provide additional features based on the type of the underlying range (e.g. operator[] is provided if the underlying range is random access). Compiler Explorer link: https://lnkd.in/eynSHGW5 #cpp #cplusplus #coding #programming #dailybiteofcpp

  • text

To view or add a comment, sign in

Explore content categories