On this page
std::chrono::operator==,<,<=,>,>=,<=>(std::chrono::leap_second)
Defined in header <chrono> |
||
---|---|---|
|
(1) | (since C++20) |
|
(2) | (since C++20) |
|
(3) | (since C++20) |
|
(4) | (since C++20) |
|
(5) | (since C++20) |
|
(6) | (since C++20) |
|
(7) | (since C++20) |
|
(8) | (since C++20) |
|
(9) | (since C++20) |
|
(10) | (since C++20) |
|
(11) | (since C++20) |
|
(12) | (since C++20) |
Compares the date and time represented by the objects x
and y
.
Return type of (12) is deduced from x.date() <=> y
, and hence the three-way comparison result type of std::chrono::seconds
and Duration
.
The !=
operator is synthesized from operator==
.
Return value
1)
x.date() == y.date()
2)
x.date() <=> y.date()
3)
x.date() == y
4)
x.date() < y
5)
x < y.date()
6)
x.date() > y
7)
x > y.date()
8)
x.date() <= y
9)
x <= y.date()
10)
x.date() >= y
11)
x >= y.date()
12)
x.date() <=> y
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/chrono/leap_second/operator_cmp