[time.cal.year.members] (original) (raw)
30 Time library [time]
30.8 The civil calendar [time.cal]
30.8.5 Class year [time.cal.year]
30.8.5.2 Member functions [time.cal.year.members]
constexpr explicit year(int y) noexcept;
Effects: Initializes y_ with y.
The value held is unspecified if y is not in the range [-32767, 32767].
constexpr year& operator++() noexcept;
constexpr year operator++(int) noexcept;
Returns: A copy of *this as it existed on entry to this member function.
constexpr year& operator--() noexcept;
constexpr year operator--(int) noexcept;
Returns: A copy of *this as it existed on entry to this member function.
constexpr year& operator+=(const years& y) noexcept;
Effects: *this = *this + y.
constexpr year& operator-=(const years& y) noexcept;
Effects: *this = *this - y.
constexpr year operator+() const noexcept;
constexpr year operator-() const noexcept;
constexpr bool is_leap() const noexcept;
Returns: y_ % 4 == 0 && (y_ % 100 != 0 || y_ % 400 == 0).
constexpr explicit operator int() const noexcept;
constexpr bool ok() const noexcept;
Returns: min().y_ <= y_ && y_ <= max().y_.
static constexpr year min() noexcept;
static constexpr year max() noexcept;