15template <
typename IntegralType, Traits::EnableIf<std::is_
integral<IntegralType>> * =
nullptr>
41template <
typename IntegralType, Traits::EnableIf<std::is_
integral<IntegralType>, std::is_
unsigned<IntegralType>> * =
nullptr>
60template <
typename IntegralType, Traits::EnableIf<std::is_
integral<IntegralType>, std::is_
unsigned<IntegralType>> * =
nullptr>
68 tmp =
module % number;
78template <
typename IntegralType, Traits::EnableIf<std::is_
integral<IntegralType>, std::is_
unsigned<IntegralType>> * =
nullptr>
84 return order !=
module ? order : 0;
88template <
typename T>
constexpr T
min(T
first, T second)
94template <
typename T1,
typename... T2>
constexpr T1
min(T1
first, T1 second, T2...
remaining)
100template <
typename T>
constexpr T
max(T
first, T second)
Contains all utilities provides by the c++utilities library.
constexpr IntegralType factorial(IntegralType number)
Returns the factorial of the given number.
IntegralType stringToNumber(const StringType &string, BaseType base=10)
Converts the given string to an unsigned/signed number assuming string uses the specified base.
constexpr IntegralType inverseModulo(IntegralType number, IntegralType module)
Computes the inverse of number modulo module.
constexpr IntegralType digitsum(IntegralType number, IntegralType base=10)
Returns the digitsum of the given number using the specified base.
constexpr T max(T first, T second)
Returns the greatest of the given items.
constexpr IntegralType powerModulo(const IntegralType base, const IntegralType exponent, const IntegralType module)
Computes base power exponent modulo module.
constexpr T min(T first, T second)
Returns the smallest of the given items.
constexpr IntegralType orderModulo(const IntegralType number, const IntegralType module)
Computes the order of number modulo module.