std::chrono::operator==,<,<=,>,>=,<=>(std::chrono::leap_second)
来自cppreference.com
| 在标头 <chrono> 定义
|
||
| |
(1) | (C++20 起) |
| |
(2) | (C++20 起) |
| |
(3) | (C++20 起) |
| |
(4) | (C++20 起) |
| |
(5) | (C++20 起) |
| |
(6) | (C++20 起) |
| |
(7) | (C++20 起) |
| |
(8) | (C++20 起) |
| |
(9) | (C++20 起) |
| |
(10) | (C++20 起) |
| |
(11) | (C++20 起) |
| |
(12) | (C++20 起) |
比较对象 x 与 y 所表示的日期和时间。
(12) 的返回类型从 x.date() <=> y 推导,从而为 std::chrono::seconds 与 Duration 的三路比较结果类型。
!= 运算符从 operator== 运算符合成。
返回值
1)
x.date() == y.date()2)
x.date() <=> y.date()3)
x.date() == y4)
x.date() < y5)
x < y.date()6)
x.date() > y7)
x > y.date()8)
x.date() <= y9)
x <= y.date()10)
x.date() >= y11)
x >= y.date()12)
x.date() <=> y