std::chrono::operator==,<,<=,>,>=,<=>(std::chrono::leap_second)
Материал из cppreference.com
<tbody>
</tbody>
| Определено в заголовочном файле <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, const std::chrono::leap_second& y ) noexcept; |
(11) | (начиная с C++20) |
template< class Duration > requires std::three_way_comparable_with< std::chrono::sys_seconds, std::chrono::sys_time<Duration>> constexpr auto operator<=>( const std::chrono::leap_second& x, const std::chrono::sys_time<Duration>& y ) noexcept; |
(12) | (начиная с C++20) |
Сравнивает дату и время, представленные объектами x и y.
Тип возвращаемого значения (12) выводится из x.date() <=> y и, следовательно, тип результата трёхстороннего сравнения std::chrono::seconds и Duration.
Оператор != синтезируется из operator==.
Возвращаемое значение
1)
x.date() == y.date()2)
x.date() <=> y.date()3)
x.date() == y4)
x.date() < y5)
x < y.date()6)
x.date() > y7)
x > y.date()8)
x.date() <= y9)
x <= y.date()10)
x.date() >= y11)
x >= y.date()12)
x.date() <=> y