std::chrono:: operator== (std::chrono::zoned_time)
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | ||||
| Nonmember functions | ||||
|
operator==
|
||||
| Helper classes | ||||
|
(C++26)
|
||||
| Deduction guides |
|
ヘッダーで定義
<chrono>
|
||
|
template
<
class
Duration1,
class
Duration2,
class
TimeZonePtr
>
bool
operator
==
(
const
std::
chrono
::
zoned_time
<
Duration1, TimeZonePtr
>
&
x,
|
(C++20以降) | |
2つの
zoned_time
値を比較します
x
と
y
。2つの
zoned_time
オブジェクトは、それらの時間点とタイムゾーンポインタの両方が
operator==
によって等しいと比較された場合に等しいと比較されます。
!=
演算子は
synthesized
され、
operator==
から生成されます。
戻り値
x. get_time_zone ( ) == y. get_time_zone ( ) && x. get_sys_time ( ) == y. get_sys_time ( ) と同等ですが、比較は x と y の非静的データメンバに対して直接行われ、コピーは実行されません。