| ||||||||||||||||||||||
| Range primitives | |||||||
| |||||||
| Range concepts | |||||||||||||||||||
| |||||||||||||||||||
| Range factories | |||||||||
| |||||||||
| Range adaptors | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Helper items | |||||||||||||||||
| |||||||||||||||||
| Member functions | ||||
adjacent_view::end | ||||
(C++26) | ||||
| Iterator | ||||
| Member functions | ||||
| Non-member functions | ||||
| Sentinel | ||||
| Member functions | ||||
| Non-member functions | ||||
constexprauto end() requires(!__SimpleView<V>); | (1) | (since C++23) |
constexprauto end()const requiresranges::range<const V>; | (2) | (since C++23) |
Returns aniterator or asentinel representing the end of theadjacent_view.
Letbase_ be the underlying view.
ifconstexpr(ranges::common_range<V>)return/*iterator*/<false>(__as_sentinel{},ranges::begin(base_),ranges::end(base_));elsereturn/*sentinel*/<false>(ranges::end(base_));
ifconstexpr(ranges::common_range<const V>)return/*iterator*/<true>(__as_sentinel{},ranges::begin(base_),ranges::end(base_));elsereturn/*sentinel*/<true>(ranges::end(base_));
Contents |
(none)
Aniterator to the element following the last element, if the underlying viewV modelscommon_range. Otherwise, asentinel which compares equal to the end iterator.
ranges::adjacent_view<V,N> 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] |