std::chrono::operator==,<,<=,>,>=,<=>(std::chrono::leap_second)
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 > requires std::three_way_comparable_with< | (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==
.