命名空间
变体
操作

std::chrono::operator==,<=>(std::chrono::time_zone)

来自 cppreference.cn
< cpp‎ | chrono‎ | time zone
 
 
 
 
定义于头文件 <chrono>
bool operator==( const std::chrono::time_zone& x,
                 const std::chrono::time_zone& y ) noexcept;
(1) (since C++20)
std::strong_ordering operator<=>( const std::chrono::time_zone& x,
                                  const std::chrono::time_zone& y ) noexcept;
(2) (since C++20)

通过名称比较两个 time_zonexy

<<=>>=!= 运算符分别从 operator<=>operator== 合成。

[编辑] 返回值

1) x.name() == y.name()
2) x.name() <=> y.name()