std::chrono::operator==(std::chrono::zoned_time)
来自 cppreference.cn
< cpp | chrono | zoned time
定义于头文件 <chrono> |
||
template< class Duration1, class Duration2, class TimeZonePtr > bool operator==( const std::chrono::zoned_time<Duration1, TimeZonePtr>& x, |
(since C++20) | |
比较两个 zoned_time
值 x 和 y。如果两个 zoned_time
对象的时间点和时区指针根据 operator==
比较都相等,则它们比较相等。
!=
运算符是从 operator==
合成 的。
[编辑] 返回值
x.get_time_zone() == y.get_time_zone() && x.get_sys_time() == y.get_sys_time(),除非比较直接在 x 和 y 的非静态数据成员上执行,并且不执行复制。