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 bool operator!=(const std::chrono::leap& x, const std::chrono::leap& y) noexcept; | (2) | (since C++20) |
constexpr bool operator< (const std::chrono::leap& x, const std::chrono::leap& y) noexcept; | (3) | (since C++20) |
constexpr bool operator> (const std::chrono::leap& x, const std::chrono::leap& y) noexcept; | (4) | (since C++20) |
constexpr bool operator<=(const std::chrono::leap& x, const std::chrono::leap& y) noexcept; | (5) | (since C++20) |
constexpr bool operator>=(const std::chrono::leap& x, const std::chrono::leap& y) noexcept; | (6) | (since C++20) |
template< class Duration > constexpr bool operator==(const std::chrono::leap& x, const std::chrono::sys_time<Duration>& y) noexcept; | (7) | (since C++20) |
template< class Duration > constexpr bool operator==(const std::chrono::sys_time<Duration>& x, const std::chrono::leap& y) noexcept; | (8) | (since C++20) |
template< class Duration > constexpr bool operator!=(const std::chrono::leap& x, const std::chrono::sys_time<Duration>& y) noexcept; | (9) | (since C++20) |
template< class Duration > constexpr bool operator!=(const std::chrono::sys_time<Duration>& x, const std::chrono::leap& y) noexcept; | (10) | (since C++20) |
template< class Duration > constexpr bool operator< (const std::chrono::leap& x, const std::chrono::sys_time<Duration>& y) noexcept; | (11) | (since C++20) |
template< class Duration > constexpr bool operator< (const std::chrono::sys_time<Duration>& x, const std::chrono::leap& y) noexcept; | (12) | (since C++20) |
template< class Duration > constexpr bool operator> (const std::chrono::leap& x, const std::chrono::sys_time<Duration>& y) noexcept; | (13) | (since C++20) |
template< class Duration > constexpr bool operator> (const std::chrono::sys_time<Duration>& x, const std::chrono::leap& y) noexcept; | (14) | (since C++20) |
template< class Duration > constexpr bool operator<=(const std::chrono::leap& x, const std::chrono::sys_time<Duration>& y) noexcept; | (15) | (since C++20) |
template< class Duration > constexpr bool operator<=(const std::chrono::sys_time<Duration>& x, const std::chrono::leap& y) noexcept; | (16) | (since C++20) |
template< class Duration > constexpr bool operator>=(const std::chrono::leap& x, const std::chrono::sys_time<Duration>& y) noexcept; | (17) | (since C++20) |
template< class Duration > constexpr bool operator>=(const std::chrono::sys_time<Duration>& x, const std::chrono::leap& y) noexcept; | (18) | (since C++20) |
Compares the date and time represented by the objects x
and y
.
Return value
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()
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/chrono/leap/operator_cmp