std::chrono:: operator==,<,<=,>,>=,<=> (std::chrono::leap_second)
|
Definiert in Header
<chrono>
|
||
|
constexpr
bool
operator
==
(
const
std::
chrono
::
leap_second
&
x,
const std:: chrono :: leap_second & y ) noexcept ; |
(1) | (seit C++20) |
|
constexpr
std::
strong_ordering
operator
<=>
(
const
std::
chrono
::
leap_second
&
x,
const std:: chrono :: leap_second & y ) noexcept ; |
(2) | (seit C++20) |
|
template
<
class
Duration
>
constexpr
bool
operator
==
(
const
std::
chrono
::
leap_second
&
x,
|
(3) | (seit C++20) |
|
template
<
class
Duration
>
constexpr
bool
operator
<
(
const
std::
chrono
::
leap_second
&
x,
|
(4) | (seit C++20) |
|
template
<
class
Duration
>
constexpr
bool
operator
<
(
const
std::
chrono
::
sys_time
<
Duration
>
&
x,
|
(5) | (seit C++20) |
|
template
<
class
Duration
>
constexpr
bool
operator
>
(
const
std::
chrono
::
leap_second
&
x,
|
(6) | (seit C++20) |
|
template
<
class
Duration
>
constexpr
bool
operator
>
(
const
std::
chrono
::
sys_time
<
Duration
>
&
x,
|
(7) | (seit C++20) |
|
template
<
class
Duration
>
constexpr
bool
operator
<=
(
const
std::
chrono
::
leap_second
&
x,
|
(8) | (seit C++20) |
|
template
<
class
Duration
>
constexpr
bool
operator
<=
(
const
std::
chrono
::
sys_time
<
Duration
>
&
x,
|
(9) | (seit C++20) |
|
template
<
class
Duration
>
constexpr
bool
operator
>=
(
const
std::
chrono
::
leap_second
&
x,
|
(10) | (seit C++20) |
|
template
<
class
Duration
>
constexpr
bool
operator
>=
(
const
std::
chrono
::
sys_time
<
Duration
>
&
x,
|
(11) | (seit C++20) |
|
template
<
class
Duration
>
erfordert
std::
three_way_comparable_with
<
|
(12) | (seit C++20) |
Vergleicht das Datum und die Uhrzeit, die durch die Objekte x und y dargestellt werden.
Der Rückgabetyp von
(12)
wird von
x.
date
(
)
<=>
y
abgeleitet, und somit der Drei-Wege-Vergleichsresultattyp von
std::chrono::seconds
und
Duration
.
Der
!=
-Operator wird
synthetisiert
aus
operator==
.