| ||||||||||||||||||||||
| Range primitives | |||||||
| |||||||
| Range concepts | |||||||||||||||||||
| |||||||||||||||||||
| Range factories | |||||||||
| |||||||||
| Range adaptors | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Helper items | |||||||||||||||||
| |||||||||||||||||
| Member functions | ||||
stride_view::end | ||||
(C++26) | ||||
| Deduction guides | ||||
| Iterator | ||||
| Member functions | ||||
| Non-member functions | ||||
constexprauto end() requires(!/*simple-view*/<V>); | (1) | (since C++23) |
constexprauto end()const requiresranges::range<const V> | (2) | (since C++23) |
Returns aniterator or asentinel representing the end of thestride_view.
Letbase_ andstride_ be the underlying data members.
Equivalent to:
ifconstexpr(ranges::common_range<Base>&&ranges::sized_range<Base>&&ranges::forward_range<Base>){auto missing=(stride_-ranges::distance(base_)% stride_)% stride_;return iterator<Const>(this,ranges::end(base_), missing);}elseifconstexpr(ranges::common_range<Base>&&!ranges::bidirectional_range<Base>){return iterator<Const>(this,ranges::end(base_));}else{returnstd::default_sentinel;}
Contents |
(none)
Aniterator to the element following the last element, if the underlying viewV modelscommon_range. Otherwise, thestd::default_sentinel which compares equal to the end iterator.
stride_view<V> modelscommon_range whenever the underlying viewV does.
| This section is incomplete Reason: no example |
| returns an iterator to the beginning (public member function)[edit] | |
(C++20) | returns a sentinel indicating the end of a range (customization point object)[edit] |