std::basic_const_iterator<Iter>:: operator==,<,<=,>,>=,<=>
|
Сравнение на равенство
|
||
|
template
<
std::
sentinel_for
<
Iter
>
S
>
constexpr bool operator == ( const S & s ) const ; |
(1) | (начиная с C++23) |
|
Реляционные сравнения между двумя
basic_const_iterator
ами
|
||
|
constexpr
bool
operator
<
(
const
basic_const_iterator
&
y
)
const
requires std:: random_access_iterator < Iter > ; |
(2) | (начиная с C++23) |
|
constexpr
bool
operator
>
(
const
basic_const_iterator
&
y
)
const
requires std:: random_access_iterator < Iter > ; |
(3) | (начиная с C++23) |
|
constexpr
bool
operator
<=
(
const
basic_const_iterator
&
y
)
const
requires std:: random_access_iterator < Iter > ; |
(4) | (начиная с C++23) |
|
constexpr
bool
operator
>=
(
const
basic_const_iterator
&
y
)
const
requires std:: random_access_iterator < Iter > ; |
(5) | (начиная с C++23) |
|
constexpr
auto
operator
<=>
(
const
basic_const_iterator
&
y
)
const
требует std:: random_access_iterator < Iter > && std:: three_way_comparable < Iter > ; |
(6) | (начиная с C++23) |
|
Реляционные сравнения между
basic_const_iterator
и другим типом
|
||
|
template
<
/*different-from*/
<
basic_const_iterator
>
I
>
constexpr
bool
operator
<
(
const
I
&
y
)
const
|
(7) | (начиная с C++23) |
|
template
<
/*different-from*/
<
basic_const_iterator
>
I
>
constexpr
bool
operator
>
(
const
I
&
y
)
const
|
(8) | (начиная с C++23) |
|
template
<
/*different-from*/
<
basic_const_iterator
>
I
>
constexpr
bool
operator
<=
(
const
I
&
y
)
const
|
(9) | (начиная с C++23) |
|
template
<
/*different-from*/
<
basic_const_iterator
>
I
>
constexpr
bool
operator
>=
(
const
I
&
y
)
const
|
(10) | (начиная с C++23) |
|
template
<
/*different-from*/
<
basic_const_iterator
>
I
>
constexpr
auto
operator
<=>
(
const
I
&
y
)
const
|
(11) | (начиная с C++23) |
Сравнивает
basic_const_iterator
с другим значением.
Оператор
!=
синтезируется
из
operator==
.
I удовлетворяет /*different-from*/ < basic_const_iterator > если std:: same_as < I, basic_const_iterator < Iter >> ложно.
Содержание |
Параметры
| s | - |
страж для
Iter
|
| y | - | значение для сравнения |
Возвращаемое значение
Примечания
Перегрузка
(
1
)
может использоваться для сравнения двух значений
basic_const_iterator<Iter>
если
Iter
моделирует
sentinel_for
<
Iter
>
.
Пример
|
Этот раздел не завершён
Причина: отсутствует пример |
Смотрите также
|
|||