|
Embedded Template Library 1.0
|
Spaceship operator. More...
#include <year_month_day.h>
Public Member Functions | |
| ETL_CONSTEXPR14 | year_month_day_last (const etl::chrono::year &y_, const etl::chrono::month_day_last &mdl_) ETL_NOEXCEPT |
| ETL_NODISCARD ETL_CONSTEXPR14 etl::chrono::year | year () const ETL_NOEXCEPT |
| ETL_NODISCARD ETL_CONSTEXPR14 etl::chrono::month | month () const ETL_NOEXCEPT |
| ETL_NODISCARD ETL_CONSTEXPR14 etl::chrono::day | day () const ETL_NOEXCEPT |
| ETL_NODISCARD ETL_CONSTEXPR14 etl::chrono::month_day_last | month_day_last () const ETL_NOEXCEPT |
| ETL_NODISCARD ETL_CONSTEXPR14 bool | ok () const ETL_NOEXCEPT |
| ETL_CONSTEXPR14 etl::chrono::year_month_day_last & | operator+= (const etl::chrono::years &dy) ETL_NOEXCEPT |
| ETL_CONSTEXPR14 etl::chrono::year_month_day_last & | operator+= (const etl::chrono::months &dm) ETL_NOEXCEPT |
| ETL_CONSTEXPR14 etl::chrono::year_month_day_last & | operator-= (const etl::chrono::years &dy) ETL_NOEXCEPT |
| ETL_CONSTEXPR14 etl::chrono::year_month_day_last & | operator-= (const etl::chrono::months &dm) ETL_NOEXCEPT |
| ETL_NODISCARD ETL_CONSTEXPR14 int | compare (const year_month_day_last &other) const ETL_NOEXCEPT |
| ETL_NODISCARD ETL_CONSTEXPR14 | operator etl::chrono::sys_days () const ETL_NOEXCEPT |
| Converts to etl::chrono::sys_days. | |
| ETL_NODISCARD ETL_CONSTEXPR14 | operator etl::chrono::local_days () const ETL_NOEXCEPT |
| Converts to etl::chrono::local_days. | |
Spaceship operator.
|
inline |
Compare year_month_day with another. if year < other.year, returns -1 else if year > other.year, returns 1 if month < other.month, returns -1 else if month > other.month, returns 1 else returns 0