MT Core (C++)
Core library for replacing C++ standard in project usage
Loading...
Searching...
No Matches
mtcore::calendars::IsDayCalendarSystem Concept Reference

#include <traits.hpp>

Concept definition

template<typename T>
concept mtcore::calendars::IsDayCalendarSystem = requires(const T &t, const Fixed &f) {
{ t.to_fixed() } -> std::same_as<Fixed>;
{ T::from_fixed(f) } -> std::same_as<T>;
{ T::EPOCH };
{ T::name };
{ t <=> t } -> std::same_as<std::strong_ordering>;
}
Base calendar system tracking the number of days since its epoch.
Definition fixed.hpp:38

Detailed Description

Definition at line 28 of file calendars/mtcore_calendars/traits.hpp.