std::chrono:: operator==,<,<=,>,>=,<=> (std::chrono::leap_second)
|
Определено в заголовке
<chrono>
|
||
|
constexpr
bool
operator
==
(
const
std::
chrono
::
leap_second
&
x,
const std:: chrono :: leap_second & y ) noexcept ; |
(1) | (начиная с C++20) |
|
constexpr
std::
strong_ordering
operator
<=>
(
const
std::
chrono
::
leap_second
&
x,
const std:: chrono :: leap_second & y ) noexcept ; |
(2) | (начиная с C++20) |
|
template
<
class
Duration
>
constexpr
bool
operator
==
(
const
std::
chrono
::
leap_second
&
x,
|
(3) | (начиная с C++20) |
|
template
<
class
Duration
>
constexpr
bool
operator
<
(
const
std::
chrono
::
leap_second
&
x,
|
(4) | (начиная с C++20) |
|
template
<
class
Duration
>
constexpr
bool
operator
<
(
const
std::
chrono
::
sys_time
<
Duration
>
&
x,
|
(5) | (начиная с C++20) |
|
template
<
class
Duration
>
constexpr
bool
operator
>
(
const
std::
chrono
::
leap_second
&
x,
|
(6) | (начиная с C++20) |
|
template
<
class
Duration
>
constexpr
bool
operator
>
(
const
std::
chrono
::
sys_time
<
Duration
>
&
x,
|
(7) | (начиная с C++20) |
|
template
<
class
Duration
>
constexpr
bool
operator
<=
(
const
std::
chrono
::
leap_second
&
x,
|
(8) | (начиная с C++20) |
|
template
<
class
Duration
>
constexpr
bool
operator
<=
(
const
std::
chrono
::
sys_time
<
Duration
>
&
x,
|
(9) | (начиная с C++20) |
|
template
<
class
Duration
>
constexpr
bool
operator
>=
(
const
std::
chrono
::
leap_second
&
x,
|
(10) | (начиная с C++20) |
|
template
<
class
Duration
>
constexpr
bool
operator
>=
(
const
std::
chrono
::
sys_time
<
Duration
>
&
x,
|
(11) | (начиная с C++20) |
|
template
<
class
Duration
>
requires
std::
three_way_comparable_with
<
|
(12) | (начиная с C++20) |
Сравнивает дату и время, представленные объектами x и y .
Возвращаемый тип
(12)
выводится из
x.
date
(
)
<=>
y
, и следовательно, тип результата трёхстороннего сравнения для
std::chrono::seconds
и
Duration
.
Оператор
!=
синтезируется
из
operator==
.