26constexpr bool isNumber = std::is_arithmetic_v<T>;
28template <std::
floating_po
int T>
29constexpr bool isNumber<std::complex<T>> =
true;
32constexpr bool isComplex =
false;
34template <std::
floating_po
int T>
35constexpr bool isComplex<std::complex<T>> =
true;
38constexpr bool isStdRatio =
false;
40template <
intmax_t n,
intmax_t d>
41constexpr bool isStdRatio<std::ratio<n, d>> =
true;
53concept intNumber = std::is_integral_v<std::remove_cvref_t<T>>;
Constrains a type to represent a complex valued floating point number (e.g.
Definition: NumericTypeConcepts.h:87
Constrains a type to be of the type DisabledConstant.
Definition: NumericTypeConcepts.h:99
Constrains a type to represent a real valued 32 bit integer number.
Definition: NumericTypeConcepts.h:57
Constrains a type to represent a real valued 64 bit integer number.
Definition: NumericTypeConcepts.h:61
Constrains a type to represent a real valued integer number.
Definition: NumericTypeConcepts.h:53
Constrains a type to represent a real valued or std::complex number type.
Definition: NumericTypeConcepts.h:49
Constrains a type to represent a real valued floating point number.
Definition: NumericTypeConcepts.h:83
Constrains a type to represent a real valued number.
Definition: NumericTypeConcepts.h:79
Constrains a type to represent a real or complex valued floating point number.
Definition: NumericTypeConcepts.h:91
Constrains a type to represent a real valued signed integer number.
Definition: NumericTypeConcepts.h:69
Constrains a type to represent a real valued signed number (e.g.
Definition: NumericTypeConcepts.h:65
Constrains a type to be any std::ratio.
Definition: NumericTypeConcepts.h:95
Constrains a type to represent a real valued unsigned integer number.
Definition: NumericTypeConcepts.h:74