std::chrono:: operator==,<,<=,>,>=,<=> (std::chrono::leap_second)
|
Definido en el encabezado
<chrono>
|
||
|
constexpr
bool
operator
==
(
const
std::
chrono
::
leap_second
&
x,
const std:: chrono :: leap_second & y ) noexcept ; |
(1) | (desde C++20) |
|
constexpr
std::
strong_ordering
operador
<=>
(
const
std::
chrono
::
leap_second
&
x,
const std:: chrono :: leap_second & y ) noexcept ; |
(2) | (desde C++20) |
|
template
<
class
Duration
>
constexpr
bool
operator
==
(
const
std::
chrono
::
leap_second
&
x,
|
(3) | (desde C++20) |
|
template
<
class
Duration
>
constexpr
bool
operator
<
(
const
std::
chrono
::
leap_second
&
x,
|
(4) | (desde C++20) |
|
template
<
class
Duration
>
constexpr
bool
operator
<
(
const
std::
chrono
::
sys_time
<
Duration
>
&
x,
|
(5) | (desde C++20) |
|
template
<
class
Duration
>
constexpr
bool
operator
>
(
const
std::
chrono
::
leap_second
&
x,
|
(6) | (desde C++20) |
|
template
<
class
Duration
>
constexpr
bool
operator
>
(
const
std::
chrono
::
sys_time
<
Duration
>
&
x,
|
(7) | (desde C++20) |
|
template
<
class
Duration
>
constexpr
bool
operator
<=
(
const
std::
chrono
::
leap_second
&
x,
|
(8) | (desde C++20) |
|
template
<
class
Duration
>
constexpr
bool
operator
<=
(
const
std::
chrono
::
sys_time
<
Duration
>
&
x,
|
(9) | (desde C++20) |
|
template
<
class
Duration
>
constexpr
bool
operator
>=
(
const
std::
chrono
::
leap_second
&
x,
|
(10) | (desde C++20) |
|
template
<
class
Duration
>
constexpr
bool
operator
>=
(
const
std::
chrono
::
sys_time
<
Duration
>
&
x,
|
(11) | (desde C++20) |
|
template
<
class
Duration
>
requires
std::
three_way_comparable_with
<
|
(12) | (desde C++20) |
Compara la fecha y hora representadas por los objetos x y y .
El tipo de retorno de
(12)
se deduce de
x.
date
(
)
<=>
y
, y por lo tanto el tipo de resultado de comparación de tres vías de
std::chrono::seconds
y
Duration
.
El operador
!=
es
sintetizado
a partir de
operator==
.