std::chrono:: operator==,<,<=,>,>=,<=> (std::chrono::leap_second)
|
Défini dans l'en-tête
<chrono>
|
||
|
constexpr
bool
operator
==
(
const
std::
chrono
::
leap_second
&
x,
const std:: chrono :: leap_second & y ) noexcept ; |
(1) | (depuis C++20) |
|
constexpr
std::
strong_ordering
operator
<=>
(
const
std::
chrono
::
leap_second
&
x,
const std:: chrono :: leap_second & y ) noexcept ; |
(2) | (depuis C++20) |
|
template
<
class
Duration
>
constexpr
bool
operator
==
(
const
std::
chrono
::
leap_second
&
x,
|
(3) | (depuis C++20) |
|
template
<
class
Duration
>
constexpr
bool
operator
<
(
const
std::
chrono
::
leap_second
&
x,
|
(4) | (depuis C++20) |
|
template
<
class
Duration
>
constexpr
bool
operator
<
(
const
std::
chrono
::
sys_time
<
Duration
>
&
x,
|
(5) | (depuis C++20) |
|
template
<
class
Duration
>
constexpr
bool
operator
>
(
const
std::
chrono
::
leap_second
&
x,
|
(6) | (depuis C++20) |
|
template
<
class
Duration
>
constexpr
bool
operator
>
(
const
std::
chrono
::
sys_time
<
Duration
>
&
x,
|
(7) | (depuis C++20) |
|
template
<
class
Duration
>
constexpr
bool
operator
<=
(
const
std::
chrono
::
leap_second
&
x,
|
(8) | (depuis C++20) |
|
template
<
class
Duration
>
constexpr
bool
operator
<=
(
const
std::
chrono
::
sys_time
<
Duration
>
&
x,
|
(9) | (depuis C++20) |
|
template
<
class
Duration
>
constexpr
bool
operator
>=
(
const
std::
chrono
::
leap_second
&
x,
|
(10) | (depuis C++20) |
|
template
<
class
Duration
>
constexpr
bool
operator
>=
(
const
std::
chrono
::
sys_time
<
Duration
>
&
x,
|
(11) | (depuis C++20) |
|
template
<
class
Duration
>
requires
std::
three_way_comparable_with
<
|
(12) | (depuis C++20) |
Compare la date et l'heure représentées par les objets x et y .
Le type de retour de
(12)
est déduit de
x.
date
(
)
<=>
y
, et donc le type de résultat de comparaison à trois voies de
std::chrono::seconds
et
Duration
.
L'opérateur
!=
est
synthétisé
à partir de
operator==
.