table of contents
- Tumbleweed 2026.11.13-1.1
- Leap-16.0
- Leap-15.6
| std::chrono::operator==,,>=,(std::chrono::leap_second)(3) | C++ Standard Libary | std::chrono::operator==,,>=,(std::chrono::leap_second)(3) |
NAME¶
std::chrono::operator==,,>=,(std::chrono::leap_second) - std::chrono::operator==,,>=,(std::chrono::leap_second)
Synopsis¶
Defined in header <chrono> constexpr bool operator==( const std::chrono::leap_second& x, (1) (since C++20) const std::chrono::leap_second& y ) noexcept; constexpr std::strong_ordering operator<=>( const std::chrono::leap_second& x, (2) (since C++20) const std::chrono::leap_second& y ) noexcept; template< class Duration >
constexpr bool operator==( const std::chrono::leap_second& x, (3) (since C++20)
const std::chrono::sys_time<Duration>& y ) noexcept; template< class Duration >
constexpr bool operator< ( const std::chrono::leap_second& x, (4) (since C++20)
const std::chrono::sys_time<Duration>& y ) noexcept; template< class Duration >
constexpr bool operator< ( const std::chrono::sys_time<Duration>& x, (5) (since C++20)
const std::chrono::leap_second& y ) noexcept; template< class Duration >
constexpr bool operator> ( const std::chrono::leap_second& x, (6) (since C++20)
const std::chrono::sys_time<Duration>& y ) noexcept; template< class Duration >
constexpr bool operator> ( const std::chrono::sys_time<Duration>& x, (7) (since C++20)
const std::chrono::leap_second& y ) noexcept; template< class Duration >
constexpr bool operator<=( const std::chrono::leap_second& x, (8) (since C++20)
const std::chrono::sys_time<Duration>& y ) noexcept; template< class Duration >
constexpr bool operator<=( const std::chrono::sys_time<Duration>& x, (9) (since C++20)
const std::chrono::leap_second& y ) noexcept; template< class Duration >
constexpr bool operator>=( const std::chrono::leap_second& x, (10) (since C++20)
const std::chrono::sys_time<Duration>& y ) noexcept; template< class Duration >
constexpr bool operator>=( const std::chrono::sys_time<Duration>& x, (11) (since C++20)
const std::chrono::leap_second& y ) noexcept; template< class Duration >
requires std::three_way_comparable_with< std::chrono::sys_seconds, std::chrono::sys_time<Duration>> (12) (since C++20) constexpr auto operator<=>( const std::chrono::leap_second& x,
const std::chrono::sys_time<Duration>& y ) noexcept;
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.
The != operator is synthesized from operator==.
Return value¶
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
| 2026.11.10 | http://cppreference.com |