Namespaces
Variants
Views
Actions

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

From cppreference.com
< cpp‎ | ranges‎ | subrange
 
 
 
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

Contents

[edit] Parameters

(none)

[edit] Return value

A sentinel copy-constructed from the stored sentinel.

[edit] Example

[edit] See also

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