|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | ||||
| Nonmember functions | ||||
operator==operator<operator<=operator>operator>=operator<=> | ||||
| Helper classes | ||||
Defined in header <chrono> | ||
constexprbool operator==(conststd::chrono::leap_second& x, conststd::chrono::leap_second& y)noexcept; | (1) | (since C++20) |
constexprstd::strong_ordering operator<=>(conststd::chrono::leap_second& x, conststd::chrono::leap_second& y)noexcept; | (2) | (since C++20) |
template<class Duration> constexprbool operator==(conststd::chrono::leap_second& x, | (3) | (since C++20) |
template<class Duration> constexprbool operator<(conststd::chrono::leap_second& x, | (4) | (since C++20) |
template<class Duration> constexprbool operator<(conststd::chrono::sys_time<Duration>& x, | (5) | (since C++20) |
template<class Duration> constexprbool operator>(conststd::chrono::leap_second& x, | (6) | (since C++20) |
template<class Duration> constexprbool operator>(conststd::chrono::sys_time<Duration>& x, | (7) | (since C++20) |
template<class Duration> constexprbool operator<=(conststd::chrono::leap_second& x, | (8) | (since C++20) |
template<class Duration> constexprbool operator<=(conststd::chrono::sys_time<Duration>& x, | (9) | (since C++20) |
template<class Duration> constexprbool operator>=(conststd::chrono::leap_second& x, | (10) | (since C++20) |
template<class Duration> constexprbool operator>=(conststd::chrono::sys_time<Duration>& x, | (11) | (since C++20) |
template<class Duration> requiresstd::three_way_comparable_with< | (12) | (since C++20) |
Compares the date and time represented by the objectsx andy.
Return type of(12) is deduced fromx.date()<=> y, and hence the three-way comparison result type ofstd::chrono::seconds andDuration.
The!= operator issynthesized fromoperator==.