| ||||||||||||||||||||||
| Range primitives | |||||||
| |||||||
| Range concepts | |||||||||||||||||||
| |||||||||||||||||||
| Range factories | |||||||||
| |||||||||
| Range adaptors | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Helper items | |||||||||||||||||
| |||||||||||||||||
Contents |
constexprranges::iterator_t<V> /*find-next*/(ranges::iterator_t<V> current); | (since C++23) (exposition only*) | |
Finds the next chunk.
Letbase_ andpred_ be appropriate underlying data-members ofchunk_by_view.
Equivalent to
returnranges::next(ranges::adjacent_find( current,ranges::end(base_),std::not_fn(std::ref(*pred_))),1,ranges::end(base_));
The behavior is undefined ifpred_.has_value() isfalse before the call to this function.
Used in the following non-static member functions:
operator++| current | - | the iterator to current element in adapted view |
An iterator to the next chunk, as described above.
constexprranges::iterator_t<V> /*find-prev*/(ranges::iterator_t<V> current) | (since C++23) (exposition only*) | |
Finds the previous chunk.
Letbase_ andpred_ be appropriate underlying data-members ofchunk_by_view.
Returns an iteratori in the range[ranges::begin(base_), current) such that:
i is not equal toranges::begin(base_), thenbool(std::invoke(*pred_,*ranges::prev(i),*i)) isfalse.The behavior is undefined if before the call to this functioncurrent==ranges::begin(base_) orpred_.has_value()!=true.
Used in the following non-static member functions:
operator--| current | - | the iterator to current element in adapted view |
An iterator to the previous chunk, as described above.