weekday_indexed
A template representing a weekday_indexed.
____________________________________________________________________________________________________
weekday_indexed
STL equivalent: std::chrono::weekday_indexed
class weekday_indexed
____________________________________________________________________________________________________
Construction
ETL_CONSTEXPR
weekday_indexed()
ETL_NOEXCEPT
Default constructor.
______________________________________________
ETL_CONSTEXPR14
weekday_indexed(const etl::chrono::weekday& wd, unsigned index)
ETL_NOEXCEPT
Construct from weekday and index.
______________________________________________
ETL_CONSTEXPR14
weekday_indexed(const etl::chrono::weekday_indexed& other)
ETL_NOEXCEPT
Copy constructor.
____________________________________________________________________________________________________
Tests
ETL_NODISCARD
ETL_CONSTEXPR14
bool ok() const
ETL_NOEXCEPT
Returns true if the weekday_indexed is valid
______________________________________________
ETL_NODISCARD
ETL_CONSTEXPR14
bool is_weekend() const
ETL_NOEXCEPT
Returns true if the weekday_indexed is a Saturday or Sunday.
____________________________________________________________________________________________________
Assignment
ETL_CONSTEXPR14
etl::chrono::weekday_indexed& operator =(const etl::chrono::weekday_indexed& rhs)
ETL_NOEXCEPT
Assignment operator
____________________________________________________________________________________________________
Access
ETL_CONSTEXPR14
etl::chrono::weekday weekday() const
ETL_NOEXCEPT
Gets the weekday.
______________________________________________
ETL_CONSTEXPR14
unsigned index() const
ETL_NOEXCEPT
Gets the index.
____________________________________________________________________________________________________
Non-member comparison operators
ETL_CONSTEXPR14
bool operator ==(const etl::chrono::weekday_indexed& m1,
const etl::chrono::weekday_indexed& m2)
ETL_NOEXCEPT
Equality operator.
______________________________________________
ETL_CONSTEXPR14
bool operator !=(const etl::chrono::weekday_indexed& m1,
const etl::chrono::weekday_indexed& m2)
ETL_NOEXCEPT
Inequality operator.
____________________________________________________________________________________________________
Hash
template <>
struct hash<etl::chrono::weekday_indexed>
Hash function for etl::chrono::weekday_indexed