Lines Matching full:year

31 class year {
36 year() = default;
37 …_LIBCPP_HIDE_FROM_ABI explicit inline constexpr year(int __val) noexcept : __y_(static_cast<short>… in year() function
39 _LIBCPP_HIDE_FROM_ABI inline constexpr year& operator++() noexcept {
43 _LIBCPP_HIDE_FROM_ABI inline constexpr year operator++(int) noexcept {
44 year __tmp = *this;
48 _LIBCPP_HIDE_FROM_ABI inline constexpr year& operator--() noexcept {
52 _LIBCPP_HIDE_FROM_ABI inline constexpr year operator--(int) noexcept {
53 year __tmp = *this;
57 _LIBCPP_HIDE_FROM_ABI constexpr year& operator+=(const years& __dy) noexcept;
58 _LIBCPP_HIDE_FROM_ABI constexpr year& operator-=(const years& __dy) noexcept;
59 _LIBCPP_HIDE_FROM_ABI inline constexpr year operator+() const noexcept { return *this; }
60 _LIBCPP_HIDE_FROM_ABI inline constexpr year operator-() const noexcept { return year{-__y_}; }
67 _LIBCPP_HIDE_FROM_ABI static inline constexpr year min() noexcept { return year{-32767}; } in min()
68 _LIBCPP_HIDE_FROM_ABI static inline constexpr year max() noexcept { return year{32767}; } in max()
71 _LIBCPP_HIDE_FROM_ABI inline constexpr bool operator==(const year& __lhs, const year& __rhs) noexce…
75 _LIBCPP_HIDE_FROM_ABI constexpr strong_ordering operator<=>(const year& __lhs, const year& __rhs) n…
79 _LIBCPP_HIDE_FROM_ABI inline constexpr year operator+(const year& __lhs, const years& __rhs) noexce…
80 return year(static_cast<int>(__lhs) + __rhs.count());
83 _LIBCPP_HIDE_FROM_ABI inline constexpr year operator+(const years& __lhs, const year& __rhs) noexce…
87 _LIBCPP_HIDE_FROM_ABI inline constexpr year operator-(const year& __lhs, const years& __rhs) noexce…
91 _LIBCPP_HIDE_FROM_ABI inline constexpr years operator-(const year& __lhs, const year& __rhs) noexce…
95 _LIBCPP_HIDE_FROM_ABI inline constexpr year& year::operator+=(const years& __dy) noexcept {
100 _LIBCPP_HIDE_FROM_ABI inline constexpr year& year::operator-=(const years& __dy) noexcept {
105 _LIBCPP_HIDE_FROM_ABI constexpr bool year::ok() const noexcept { in ok()