From cppreference.com
constexprautoend(); (1) (since C++23)constexprautoend()constrequiresranges::forward_range<constV>&&ranges::forward_range<constPattern>&&std::is_reference_v<ranges::range_reference_t<constV>>>&&ranges::input_range<ranges::range_reference_t<constV>>&&/*concatable*/<ranges::range_reference_t<constV>,constPattern>; (2) (since C++23)Returns an
or a
that compares equal to the past-the-end iterator of the
.
2) Returns a const iterator/sentinel.
If all following conditions are satisfied, returns an iterator:
constV models
.
ranges::range_reference_t<constV> models
and
.
Otherwise, returns a sentinel.
Return value
Overload Return value Iterator Sentinel (1)
<
<V>&&
<Pattern>>
{*this,ranges::end(
)}
<
<V>&&
<Pattern>>
{*this}(2)
<true>{*this,ranges::end(
)}
<true>{*this}Example
See also
returns an iterator to the beginning
(public member function)
(C++20)
returns a sentinel indicating the end of a range
(customization point object)