30 Time library [time]

30.8 The civil calendar [time.cal]

30.8.4 Class month [time.cal.month]

30.8.4.2 Member functions [time.cal.month.members]

constexpr explicit month(unsigned m) noexcept;
Effects: Initializes m_ with m.
The value held is unspecified if m is not in the range [0, 255].
constexpr month& operator+() noexcept;
Returns: *this.
constexpr month operator+(int) noexcept;
Returns: A copy of *this as it existed on entry to this member function.
constexpr month& operator-() noexcept;
Returns: *this.
constexpr month operator-(int) noexcept;
Returns: A copy of *this as it existed on entry to this member function.
constexpr month& operator+=(const months& m) noexcept;
Returns: *this.
constexpr month& operator-=(const months& m) noexcept;
Returns: *this.
constexpr explicit operator unsigned() const noexcept;
Returns: m_.
constexpr bool ok() const noexcept;
Returns: 1 <= m_ && m_ <= 12.

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant