Mjolnir Core
Core functionality of the Mjolnir API

◆ power()

constexpr auto power ( T_Type  base,
std::integral auto  exponent 
) -> T_Type
constexprnoexcept

Calculate the power of a number using an integer based exponent.

Template Parameters
T_TypeAn integer or floating-point type
Parameters
[in]baseThe base number
[in]exponentThe exponent
Returns
The result of the power function