|
template<class T > |
constexpr auto | abs (const T t) -> T |
| Generic absolute of any value.
|
|
template<class T , char... Cs> |
constexpr auto | den () -> T |
| Compute the decimals of a number represented as an array of characters.
|
|
template<class T , char... Cs> |
constexpr auto | den_size () -> T |
| Compute the number of decimal places of a number represented as an array of characters.
|
|
template<class T , class Value_T > |
constexpr auto | den_size (Value_T value) -> T |
| Compute the number of decimal places of a value, up to 7 digits.
|
|
template<class T > |
constexpr auto | min_value (const T &lhs, const T &rhs) -> const T & |
| Generic minimum of two values.
|
|
template<class T , char... Cs> |
constexpr auto | num () -> T |
| Compute the integral value of a number represented as an array of characters.
|
|
template<class T , class Exp_T > |
constexpr auto | pow (const T base, const Exp_T exp) -> T |
| Generic 'power of', to raise base to exponent (base ^ exp).
|
|
Local mathematical functions.
Some may have equivalents in the standard library, but may be more complicated to use, or have only floating point variants, or not be constexpr.