CelestialCalendar 1.0.0 · unreleased development @ 67a7c4c79a4a4a6aa7e703c9e6f0039ae34bee82
Loading...
Searching...
No Matches
calendar::Fractionable Concept Reference

Checks if a type can cast to std::chrono::nanoseconds, which is the assumption of function fraction. More...

#include <datetime.hpp>

Concept definition

template<typename T>
concept calendar::Fractionable = requires (T t) {
{ duration_cast<nanoseconds>(t) } -> std::same_as<nanoseconds>;
}
Checks if a type can cast to std::chrono::nanoseconds, which is the assumption of function fraction.
Definition datetime.hpp:84

Detailed Description

Checks if a type can cast to std::chrono::nanoseconds, which is the assumption of function fraction.

Template Parameters
TThe type to check.