std::chrono::operator ==,!=,<,<=,>,>= (std::chrono::leap)

来自cppreference.com
< cpp‎ | chrono‎ | leap
 
 
日期和时间工具
(C++11)
(C++11)
时钟
(C++20)
                                                  
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
日历
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
时区
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
C 风格日期和时间
 
std::chrono::leap
成员函数
非成员函数
operator==operator!=operator<operator<=operator>operator>=
 
constexpr bool operator==(const std::chrono::leap& x, const std::chrono::leap& y) noexcept;
(1) (C++20 起)
constexpr bool operator!=(const std::chrono::leap& x, const std::chrono::leap& y) noexcept;
(2) (C++20 起)
constexpr bool operator< (const std::chrono::leap& x, const std::chrono::leap& y) noexcept;
(3) (C++20 起)
constexpr bool operator> (const std::chrono::leap& x, const std::chrono::leap& y) noexcept;
(4) (C++20 起)
constexpr bool operator<=(const std::chrono::leap& x, const std::chrono::leap& y) noexcept;
(5) (C++20 起)
constexpr bool operator>=(const std::chrono::leap& x, const std::chrono::leap& y) noexcept;
(6) (C++20 起)
template< class Duration >

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                          const std::chrono::leap& y) noexcept;
(18) (C++20 起)

比较对象 xy 所表示的日期和时间。

返回值

1) x.date() == y.date()
2) x.date() != y.date()
3) x.date() < y.date()
4) x.date() > y.date()
5) x.date() <= y.date()
6) x.date() >= y.date()
7) x.date() == y
8) x == y.date()
9) x.date() != y
10) x != y.date()
11) x.date() < y
12) x < y.date()
13) x.date() > y
14) x > y.date()
15) x.date() <= y
16) x <= y.date()
17) x.date() >= y
18) x >= y.date()