I'm really excited about using range-v3 for a project of mine.
I have a use-case where I'd like to use range-v3 for iterating through multi-dimensional data, such as raster pixels in a std::vector<double>. There are times at which point I'd like to select pixels from a two-dimensional sub-region. The standard library provides a [gslice](https://en.cppreference.com/w/cpp/numeric/valarray/gslice) selector class that allows for iterating through values in a std::valarray by slice logic determined by multiple size/stride values.
Hello,
I'm really excited about using range-v3 for a project of mine.
I have a use-case where I'd like to use range-v3 for iterating through multi-dimensional data, such as raster pixels in a
std::vector<double>
. There are times at which point I'd like to select pixels from a two-dimensional sub-region. The standard library provides a[gslice](https://en.cppreference.com/w/cpp/numeric/valarray/gslice)
selector class that allows for iterating through values in astd::valarray
by slice logic determined by multiple size/stride values.As, cplusplus.com describes:
Is there an existing way to compose this behavior with existing range views?
If not, would this proposed functionality warrant a new range view type called
gslice
?Thanks!