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

#include <traits.hpp>

Concept definition

template<typename T>
concept mtcore::calendars::IsTimeCalendarSystem = requires(const T &t, const Moment &f) {
{ t.to_moment() } -> std::same_as<Moment>;
{ T::from_moment(f) } -> std::same_as<T>;
{ T::EPOCH };
{ T::name };
{ t <=> t } -> std::same_as<std::partial_ordering>;
}
Base calendar system tracking the number of days (and fraction of days) since its epoch.
Definition fixed.hpp:260

Detailed Description

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