Daily bit(e) of C++ | std::views::stride
Daily bit(e) of C++ ♻️82, The C++23 view of every n-th element in a range: std::views::stride.
The C++23 std::views::stride is a view that contains every n-th element from the source view.
This is useful when we want to represent column-order traversal using views. Note that stride iteration is generally not cache-friendly.