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()