Template Function librapid::pow(T0, T1)#

Function Documentation#

template<typename T0, typename T1, typename std::enable_if_t<std::is_fundamental_v<T0> && std::is_fundamental_v<T1>, int> = 0>
constexpr auto librapid::pow(T0 val1, T1 val2)#

Return the first number raised to the power of the second number. The return value will be promoted to the larger of the two input types.

Template Parameters
  • T0 – Data type of the first input value

  • T1 – Data type of the second input value

Parameters
  • val1 – First input value

  • val2 – Second input value

Returns

First input value raised to the power of the second input value