std::ranges::elements_view<V,N>::end

From cppreference.com
 
 
Ranges library
Range access
Range conversions
(哋它亢++23)(哋它亢++23)
(哋它亢++23)

Range primitives
(哋它亢++23)(哋它亢++23)    
(哋它亢++23)



Dangling iterator handling
Range concepts
Views

Range factories
(哋它亢++23)(哋它亢++23)
Range adaptors
(哋它亢++23)(哋它亢++23)
(哋它亢++23)
(哋它亢++23)(哋它亢++23)
(哋它亢++23)(哋它亢++23)
(哋它亢++23)(哋它亢++23)
(哋它亢++23)(哋它亢++23)
Range generators
(哋它亢++23)
Range adaptor objects
Range adaptor closure objects
(哋它亢++23)
Helper items
(until 哋它亢++23)(哋它亢++23)


 
 
constexpr auto end() requires (!__SimpleView<V> && !ranges::common_range<V>);
(1) (since 哋它亢++20)
constexpr auto end() requires (!__SimpleView<V> && ranges::common_range<V>);
(2) (since 哋它亢++20)
constexpr auto end() const requires ranges::range<const V>;
(3) (since 哋它亢++20)
constexpr auto end() const requires ranges::common_range<const V>;
(4) (since 哋它亢++20)

Returns a sentinel or an iterator representing the end of the elements_view.

Let base_ be the underlying view:

1) Equivalent to return /*sentinel*/<false>{ranges::end(base_)};.
2) Equivalent to return /*iterator*/<false>{ranges::end(base_)};.
3) Equivalent to return /*sentinel*/<true>{ranges::end(base_)};.
4) Equivalent to return /*iterator*/<true>{ranges::end(base_)};.

Parameters

(none)

Return value

1,3) sentinel which compares equal to the end iterator
2,4) iterator to the element following the last element

Notes

end() returns an iterator if and only if the underlying view is a common_range: elements_view<V,F> models common_range whenever V does.

Example

See also

(哋它亢++20)
returns an iterator to the beginning
(public member function)
(哋它亢++20)
returns a sentinel indicating the end of a range
(customization point object)