std::chrono::operator==,<=>(std::chrono::time_zone)
來自 cppreference.com
| 定義於標頭檔案 <chrono> |
||
| bool operator==( const std::chrono::time_zone& x, const std::chrono::time_zone& y ) noexcept; |
(1) | (C++20 起) |
| std::strong_ordering operator<=>( const std::chrono::time_zone& x, const std::chrono::time_zone& y ) noexcept; |
(2) | (C++20 起) |
透過名稱比較兩個 time_zone 值 x 和 y。
<、<=、>、>= 和 != 運算子分別從 operator<=> 和 operator== 合成。
[編輯] 返回值
1) x.name() == y.name()
2) x.name() <=> y.name()