constexpr_pow overloads
Declared in <folly/ConstexprMath.h>
Calculate an approximation of base raised to a floating-point exponent.
template<typename T>
requires std::floating_point<T>
constexpr
T
constexpr_pow(
T const base,
T const exp);
» more...
constexpr_pow
template<
typename T,
typename E>
requires (std::integral<E> && !std::same_as<E, bool>)
constexpr
T
constexpr_pow(
T const base,
E const exp);
» more...
An approximation of base raised to exp.
| Name | Description |
|---|---|
| base | The base value. |
| exp | The floating-point exponent. |