std::ranges::chunk_view::end - cppreference.com (original) (raw)
| V models only input_range | ||
|---|---|---|
| constexpr std::default_sentinel_t end() const noexcept; | (1) | (since C++23) |
| V models forward_range | ||
| constexpr auto end() requires (!__simple_view<V>); | (2) | (since C++23) |
| constexpr auto end() const requires ranges::forward_range<const V>; | (3) | (since C++23) |
Returns an iterator or a std::default_sentinel that compares equal to the end iterator of the chunk_view.
2,3) Available if V models forward_range. Let _[base](../chunk%5Fview.html#base "cpp/ranges/chunk view")_ denote the underlying adapted view, _[n](../chunk%5Fview.html#n "cpp/ranges/chunk view")_ denote the stored chunk size, and iterator denote the nested iterator class.
[edit] Return value
An iterator or sentinel representing the end of the chunk_view, as described above.
[edit] Example
[edit] See also
| | returns an iterator to the beginning (public member function) [edit] | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | | returns a sentinel indicating the end of a range(customization point object)[edit] |