A C++ template library for embedded applications
MIT licensed
Designed and
maintained by
John Wellbelove
month_weekday
A template representing a month and weekday.
Back to chrono
____________________________________________________________________________________________________
month_weekday

STL equivalent: std::chrono::month_weekday

class month_weekday
____________________________________________________________________________________________________
Construction

ETL_CONSTEXPR
month_weekday()
Default constructor.
______________________________________________
ETL_CONSTEXPR14
month_weekday(const etl::chrono::month&   m,
              const etl::chrono::weekday_indexed& wd)
ETL_NOEXCEPT
Construct from month and weekday_indexed.
____________________________________________________________________________________________________
Access

ETL_NODISCARD
ETL_CONSTEXPR14
etl::chrono::month month() const
ETL_NOEXCEPT
Returns the month.
______________________________________________
ETL_NODISCARD
ETL_CONSTEXPR14
etl::chrono::weekday_indexed weekday_indexed() const
ETL_NOEXCEPT
Returns the weekday.
____________________________________________________________________________________________________
Tests

ETL_NODISCARD
ETL_CONSTEXPR14
bool ok() const
ETL_NOEXCEPT
Returns true if the month and day is within the valid limits.
____________________________________________________________________________________________________
Non-member comparison operators

ETL_CONSTEXPR14
bool operator ==(const etl::chrono::month_weekday& lhs,
                 const etl::chrono::month_weekday& rhs)
ETL_NOEXCEPT
Equality operator.
______________________________________________
ETL_CONSTEXPR14
bool operator !=(const etl::chrono::month_weekday& lhs,
                 const etl::chrono::month_weekday& rhs)
ETL_NOEXCEPT
Inequality operator.
______________________________________________
ETL_CONSTEXPR14
bool operator <(const etl::chrono::month_weekday& lhs,
                const etl::chrono::month_weekday& rhs)
ETL_NOEXCEPT
Less-than operator.
______________________________________________
ETL_CONSTEXPR14
bool operator <=(const etl::chrono::month_weekday& lhs,
                 const etl::chrono::month_weekday& rhs)
ETL_NOEXCEPT
Less-than-equal operator.
______________________________________________
ETL_CONSTEXPR14
bool operator <(const etl::chrono::month_weekday& lhs,
                const etl::chrono::month_weekday& rhs)
ETL_NOEXCEPT
Greater-than operator.
______________________________________________
ETL_CONSTEXPR14
bool operator <=(const etl::chrono::month_weekday& lhs,
                 const etl::chrono::month_weekday& rhs)
ETL_NOEXCEPT
Greater-than-equal operator.
______________________________________________
[[nodiscard]] constexpr
auto operator <=>(const etl::chrono::month_weekday& lhs,
                  const etl::chrono::month_weekday& rhs)
ETL_NOEXCEPT
Spaceship operator
____________________________________________________________________________________________________
Hash

template <typename TRep, typename TPeriod>
struct hash<etl::chrono::month_weekday>
Hash function for etl::chrono::month_weekday
chrono.h