std::chrono::operator==,<,<=,>,>=,<=>(std::chrono::leap_second)
定义于头文件 <chrono> |
||
constexpr bool operator==( const std::chrono::leap_second& x, const std::chrono::leap_second& y ) noexcept; |
(1) | (since C++20) |
constexpr std::strong_ordering operator<=>( const std::chrono::leap_second& x, const std::chrono::leap_second& y ) noexcept; |
(2) | (since C++20) |
template< class Duration > constexpr bool operator==( const std::chrono::leap_second& x, |
(3) | (since C++20) |
template< class Duration > constexpr bool operator< ( const std::chrono::leap_second& 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_second& 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_second& 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_second& x, |
(10) | (since C++20) |
template< class Duration > constexpr bool operator>=( const std::chrono::sys_time<Duration>& x, |
(11) | (since C++20) |
template< class Duration > requires std::three_way_comparable_with< |
(12) | (since C++20) |
比较对象 x 和 y 所表示的日期和时间。
返回值类型 (12) 从 x.date() <=> y 推导,因此是 std::chrono::seconds 和 Duration 的三路比较结果类型。
!= 运算符从 operator== 合成而来。