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==
로부터 생성됩니다.