std::ranges::subrange<I,S,K>::end

From cppreference.com
< cpp‎ | ranges‎ | subrange
 
 
Ranges library
Range access
Range conversions
(C++23)
Range primitives



Dangling iterator handling
Range concepts
Views

Range factories
Range adaptors
Range generators
Range adaptor objects
Range adaptor closure objects
Helper items
(until C++23)(C++23)


 
std::ranges::subrange
Member functions
Observers
subrange::end
(C++20)
Iterator operations
Deduction guides
Non-member functions
(C++20)
Helper types
(C++20)
 
constexpr S end() const;
(since C++20)

Returns the sentinel indicating the end of the subrange.

range-begin-end.svg

Parameters

(none)

Return value

A sentinel copy-constructed from the stored sentinel.

Example

See also

(C++20)
obtains the iterator
(public member function)
(C++11)(C++14)
returns an iterator to the end of a container or array
(function template)
returns a sentinel indicating the end of a range
(customization point object)