| ||||||||||||||||||||||
| Range primitives | |||||||
| |||||||
| Range concepts | |||||||||||||||||||
| |||||||||||||||||||
| Range factories | |||||||||
| |||||||||
| Range adaptors | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Helper items | |||||||||||||||||
| |||||||||||||||||
| Member functions | ||||
chunk_by_view::begin | ||||
| Deduction guides | ||||
| Iterator | ||||
constexpr/*iterator*/ begin(); | (since C++23) | |
Returns aniterator to the first element of thechunk_by_view.
Equivalent to:
ranges::iterator_t<V> iter; if(begin_.has_value()) iter= begin_.value();else{ iter=/*find_next*/(ranges::begin(base())); begin_= iter;// caching} return/*iterator*/(*this,ranges::begin(base()), iter);
The behavior is undefined if the underlying predicatepred_ does not contain a value.
Contents |
(none)
Iterator to the first element.
In order to provide the amortized constant-time complexity required by therange concept, this function caches the result within the data memberbegin_ for use on subsequent calls.
| This section is incomplete Reason: no example |
| returns an iterator or a sentinel to the end (public member function)[edit] | |
(C++20) | returns an iterator to the beginning of a range (customization point object)[edit] |