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.
Click to open in Compiler Explorer.
Leave a comment