|
Range primitives | |||||||
|
Range concepts | |||||||||||||||||||
|
Range factories | |||||||||
|
Range adaptors | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
Helper items | |||||||||||||||||
|
Member functions | ||||
(C++26) | ||||
Deduction guides | ||||
Nested classes | ||||
Iterator | ||||
operator==(enumerate_view::iterator) operator<=>(enumerate_view::iterator) | ||||
Sentinel | ||||
friendconstexprbool operator==(const/*iterator*/& x,const/*iterator*/& y)noexcept; | (1) | (since C++23) |
friendconstexprstd::strong_ordering operator<=>(const/*iterator*/& x,const/*iterator*/& y)noexcept; | (2) | (since C++23) |
Compares the underlyingiterators. Letpos_
be the underlying index.
These functions are not visible to ordinaryunqualified orqualified lookup, and can only be found byargument-dependent lookup whenstd::ranges::enumerate_view::iterator<Const>
is an associated class of the arguments.
The<
,<=
,>
,>=
, and!=
operators aresynthesized fromoperator<=> andoperator== respectively.
x, y | - | iterators to compare |
Result of comparison.
(C++23) | compares a sentinel with an iterator returned fromenumerate_view::begin (function)[edit] |