3#ifndef TETL_CHRONO_MONTH_WEEKDAY_LAST_HPP
4#define TETL_CHRONO_MONTH_WEEKDAY_LAST_HPP
19 [[nodiscard]]
constexpr auto ok() const noexcept ->
bool {
return month().ok() and
weekday_last().ok(); }
26 return lhs.month() == rhs.month() and lhs.weekday_last() == rhs.weekday_last();
41 return {
month(
static_cast<unsigned>(m)), wdl};
51 return {
month(
static_cast<unsigned>(m)), wdl};
constexpr auto operator/(duration< Rep1, Period1 > const &lhs, duration< Rep2, Period2 > const &rhs) -> common_type_t< Rep1, Rep2 >
Performs basic arithmetic operations between two durations or between a duration and a tick count.
Definition duration.hpp:272
Definition month_weekday_last.hpp:12
constexpr auto ok() const noexcept -> bool
Definition month_weekday_last.hpp:19
friend constexpr auto operator==(month_weekday_last const &lhs, month_weekday_last const &rhs) noexcept -> bool
Definition month_weekday_last.hpp:24
constexpr auto month() const noexcept -> chrono::month
Definition month_weekday_last.hpp:21
constexpr month_weekday_last(chrono::month const &m, chrono::weekday_last const &wdl) noexcept
Definition month_weekday_last.hpp:13
constexpr auto weekday_last() const noexcept -> chrono::weekday_last
Definition month_weekday_last.hpp:22
The class month represents a month in a year.
Definition month.hpp:21
Definition weekday_last.hpp:11