std::chrono::operator==,<,<=,>,>=,<=>(std::chrono::leap)
constexpr bool operator==( const std::chrono::leap& x, const std::chrono::leap& y ) noexcept; |
(1) | (since C++20) |
constexpr std::strong_ordering operator<=>( const std::chrono::leap& x, const std::chrono::leap& y ) noexcept; |
(2) | (since C++20) |
template< class Duration > constexpr bool operator==( const std::chrono::leap& x, |
(3) | (since C++20) |
template< class Duration > constexpr bool operator< ( const std::chrono::leap& x, |
(4) | (since C++20) |
template< class Duration > constexpr bool operator< ( const std::chrono::sys_time<Duration>& x, |
(5) | (since C++20) |
template< class Duration > constexpr bool operator> ( const std::chrono::leap& x, |
(6) | (since C++20) |
template< class Duration > constexpr bool operator> ( const std::chrono::sys_time<Duration>& x, |
(7) | (since C++20) |
template< class Duration > constexpr bool operator<=( const std::chrono::leap& x, |
(8) | (since C++20) |
template< class Duration > constexpr bool operator<=( const std::chrono::sys_time<Duration>& x, |
(9) | (since C++20) |
template< class Duration > constexpr bool operator>=( const std::chrono::leap& x, |
(10) | (since C++20) |
template< class Duration > constexpr bool operator>=( const std::chrono::sys_time<Duration>& x, |
(11) | (since C++20) |
template< std::three_way_comparable_with<std::chrono::seconds> Duration > constexpr auto operator<=>( const std::chrono::leap& x, |
(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
.