Files
2025-10-25 03:02:53 +03:00

4.1 KiB
Raw Permalink Blame History

[time.zone.leap.nonmembers]

30 Time library [time]

30.11 Time zones [time.zone]

30.11.8 Class leap_second [time.zone.leap]

30.11.8.3 Non-member functions [time.zone.leap.nonmembers]

🔗

constexpr bool operator==(const leap_second& x, const leap_second& y) noexcept;

1

#

Returns: x.date() == y.date().

🔗

constexpr strong_ordering operator<=>(const leap_second& x, const leap_second& y) noexcept;

2

#

Returns: x.date() <=> y.date().

🔗

template<class Duration> constexpr bool operator==(const leap_second& x, const sys_time<Duration>& y) noexcept;

3

#

Returns: x.date() == y.

🔗

template<class Duration> constexpr bool operator<(const leap_second& x, const sys_time<Duration>& y) noexcept;

4

#

Returns: x.date() < y.

🔗

template<class Duration> constexpr bool operator<(const sys_time<Duration>& x, const leap_second& y) noexcept;

5

#

Returns: x < y.date().

🔗

template<class Duration> constexpr bool operator>(const leap_second& x, const sys_time<Duration>& y) noexcept;

6

#

Returns: y < x.

🔗

template<class Duration> constexpr bool operator>(const sys_time<Duration>& x, const leap_second& y) noexcept;

7

#

Returns: y < x.

🔗

template<class Duration> constexpr bool operator<=(const leap_second& x, const sys_time<Duration>& y) noexcept;

8

#

Returns: !(y < x).

🔗

template<class Duration> constexpr bool operator<=(const sys_time<Duration>& x, const leap_second& y) noexcept;

9

#

Returns: !(y < x).

🔗

template<class Duration> constexpr bool operator>=(const leap_second& x, const sys_time<Duration>& y) noexcept;

10

#

Returns: !(x < y).

🔗

template<class Duration> constexpr bool operator>=(const sys_time<Duration>& x, const leap_second& y) noexcept;

11

#

Returns: !(x < y).

🔗

template<class Duration> requires [three_way_comparable_with](cmp.concept#concept:three_way_comparable_with "17.12.4Concept three_­way_­comparable[cmp.concept]")<sys_seconds, sys_time<Duration>> constexpr auto operator<=>(const leap_second& x, const sys_time<Duration>& y) noexcept;

12

#

Returns: x.date() <=> y.