tetl 0.1.0
Embedded Template Library
|
The class month represents a month in a year. More...
#include <month.hpp>
Public Member Functions | |
month ()=default | |
constexpr | month (unsigned m) noexcept |
constexpr auto | ok () const noexcept -> bool |
constexpr | operator unsigned () const noexcept |
constexpr auto | operator++ () noexcept -> month & |
constexpr auto | operator++ (int) noexcept -> month |
constexpr auto | operator+= (months const &m) noexcept -> month & |
constexpr auto | operator-- () noexcept -> month & |
constexpr auto | operator-- (int) noexcept -> month |
constexpr auto | operator-= (months const &m) noexcept -> month & |
The class month represents a month in a year.
Its normal range is [1, 12], but it may hold any number in [0, 255]. Twelve named constants are predefined in the etl::chrono namespace for the twelve months of the year.
|
default |