operator==,!=,<,<=,>,>=,<=> (std::chrono::time_point)
|
ヘッダーで定義
<chrono>
|
||
| (1) | ||
|
template
<
class
Clock,
class
Dur1,
class
Dur2
>
bool
operator
==
(
const
std::
chrono
::
time_point
<
Clock,Dur1
>
&
lhs,
|
(C++11以降)
(C++14まで) |
|
|
template
<
class
Clock,
class
Dur1,
class
Dur2
>
constexpr
bool
operator
==
(
const
std::
chrono
::
time_point
<
Clock,Dur1
>
&
lhs,
|
(C++14以降) | |
| (2) | ||
|
template
<
class
Clock,
class
Dur1,
class
Dur2
>
bool
operator
!
=
(
const
std::
chrono
::
time_point
<
Clock,Dur1
>
&
lhs,
|
(C++11以降)
(C++14まで) |
|
|
template
<
class
Clock,
class
Dur1,
class
Dur2
>
constexpr
bool
operator
!
=
(
const
std::
chrono
::
time_point
<
Clock,Dur1
>
&
lhs,
|
(C++14以降)
(C++20まで) |
|
| (3) | ||
|
template
<
class
Clock,
class
Dur1,
class
Dur2
>
bool
operator
<
(
const
std::
chrono
::
time_point
<
Clock,Dur1
>
&
lhs,
|
(C++11以降)
(C++14まで) |
|
|
template
<
class
Clock,
class
Dur1,
class
Dur2
>
constexpr
bool
operator
<
(
const
std::
chrono
::
time_point
<
Clock,Dur1
>
&
lhs,
|
(C++14以降) | |
| (4) | ||
|
template
<
class
Clock,
class
Dur1,
class
Dur2
>
bool
operator
<=
(
const
std::
chrono
::
time_point
<
Clock,Dur1
>
&
lhs,
|
(C++11以降)
(C++14まで) |
|
|
template
<
class
Clock,
class
Dur1,
class
Dur2
>
constexpr
bool
operator
<=
(
const
std::
chrono
::
time_point
<
Clock,Dur1
>
&
lhs,
|
(C++14以降) | |
| (5) | ||
|
template
<
class
Clock,
class
Dur1,
class
Dur2
>
bool
operator
>
(
const
std::
chrono
::
time_point
<
Clock,Dur1
>
&
lhs,
|
(C++11以降)
(C++14まで) |
|
|
template
<
class
Clock,
class
Dur1,
class
Dur2
>
constexpr
bool
operator
>
(
const
std::
chrono
::
time_point
<
Clock,Dur1
>
&
lhs,
|
(C++14以降) | |
| (6) | ||
|
template
<
class
Clock,
class
Dur1,
class
Dur2
>
bool
operator
>=
(
const
std::
chrono
::
time_point
<
Clock,Dur1
>
&
lhs,
|
(C++11以降)
(C++14まで) |
|
|
template
<
class
Clock,
class
Dur1,
class
Dur2
>
constexpr
bool
operator
>=
(
const
std::
chrono
::
time_point
<
Clock,Dur1
>
&
lhs,
|
(C++14以降) | |
|
template
<
class
Clock,
class
Dur1,
std::
three_way_comparable_with
<
Dur1
>
Dur2
>
constexpr
auto
operator
<=>
(
const
std::
chrono
::
time_point
<
Clock,Dur1
>
&
lhs,
|
(7) | (C++20以降) |
2つの時間点を比較します。比較は、時間点に対する time_since_epoch() の結果を比較することで行われます。
Dur1
と
Dur2
の三方比較結果型となる。
|
|
(C++20以降) |
目次 |
パラメータ
| lhs, rhs | - | 比較する時間ポイント |
戻り値
lhs
と
rhs
が同じ時間点を参照する場合は
false
それ以外の場合。
lhs
と
rhs
が異なる時間点を参照している場合は
false
それ以外の場合。
例外
実装定義の例外をスローする可能性があります。
注記
time_point
の双方向比較演算子は
C++11では
constexpr
ではありませんでしたが、これはC++14で修正されました。