std::chrono::operator==(std::chrono::zoned_time)
來自 cppreference.com
< cpp | chrono | zoned time
定義於標頭檔案 <chrono> |
||
template< class Duration1, class Duration2, class TimeZonePtr > bool operator==( const std::chrono::zoned_time<Duration1, TimeZonePtr>& x, |
(C++20 起) | |
比較兩個 zoned_time
值 x 和 y。如果兩個 zoned_time
物件的 time_point 和 time_zone 指標都根據 operator==
進行比較後相等,則它們相等。
!=
運算子由 operator==
合成。
[編輯] 返回值
x.get_time_zone() == y.get_time_zone() && x.get_sys_time() == y.get_sys_time(),除了比較是直接在 x 和 y 的非靜態資料成員上執行的,不執行任何複製。