Daily bit(e) of C++ | std::views::zip
Daily bit(e) of C++ #116, The C++23 zip view: std::views::zip
The C++23 std::views::zip
produces a view of tuple-like elements, each consisting of the corresponding elements from all the adapted views.
The shortest range determines the number of elements in the view.
The elements of the view maintain reference semantics, meaning that if the arguments are mutable ranges, their elements can be mutated through the elements of this view.