Namespaces
Variants

std::chrono:: operator==,<,<=,>,>=,<=> (std::chrono::leap_second)

From cppreference.net
std::chrono::leap_second
Member functions
Nonmember functions
operator== operator< operator<= operator> operator>= operator<=>
Helper classes
定义于头文件 <chrono>
constexpr bool operator == ( const std:: chrono :: leap_second & x,
const std:: chrono :: leap_second & y ) noexcept ;
(1) (C++20 起)
constexpr std:: strong_ordering operator <=> ( const std:: chrono :: leap_second & x,
const std:: chrono :: leap_second & y ) noexcept ;
(2) (C++20 起)
template < class Duration >

constexpr bool operator == ( const std:: chrono :: leap_second & x,

const std:: chrono :: sys_time < Duration > & y ) noexcept ;
(3) (C++20 起)
template < class Duration >

constexpr bool operator < ( const std:: chrono :: leap_second & x,

const std:: chrono :: sys_time < Duration > & y ) noexcept ;
(4) (C++20 起)
template < class Duration >

constexpr bool operator < ( const std:: chrono :: sys_time < Duration > & x,

const std:: chrono :: leap_second & y ) noexcept ;
(5) (C++20 起)
template < class Duration >

constexpr bool operator > ( const std:: chrono :: leap_second & x,

const std:: chrono :: sys_time < Duration > & y ) noexcept ;
(6) (C++20 起)
template < class Duration >

constexpr bool operator > ( const std:: chrono :: sys_time < Duration > & x,

const std:: chrono :: leap_second & y ) noexcept ;
(7) (C++20 起)
template < class Duration >

constexpr bool operator <= ( const std:: chrono :: leap_second & x,

const std:: chrono :: sys_time < Duration > & y ) noexcept ;
(8) (C++20 起)
template < class Duration >

constexpr bool operator <= ( const std:: chrono :: sys_time < Duration > & x,

const std:: chrono :: leap_second & y ) noexcept ;
(9) (C++20 起)
template < class Duration >

constexpr bool operator >= ( const std:: chrono :: leap_second & x,

const std:: chrono :: sys_time < Duration > & y ) noexcept ;
(10) (C++20 起)
template < class Duration >

constexpr bool operator >= ( const std:: chrono :: sys_time < Duration > & x,

比较由对象 x y 表示的日期与时间。

表达式 (12) 的返回类型由 x. date ( ) <=> y 推导得出,因此即为 std::chrono::seconds Duration 的三路比较结果类型。

!= 运算符由 operator== 合成。

返回值

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