utx::npow calculates the result of exp to the power of base, the exp must be an integral type.
utx::npow is an object of class utx::npow_class.
constexpr auto result = utx::npow<N>(base); // exp N must be an integral type.
#include <utxcpp/math.hpp>
#include <utxcpp/math.hpp> #include <utxcpp/core.hpp> int main() { constexpr auto x = utx::npow<utx::u32{3}>(10); // 1000.0f constexpr auto y = utx::npow<3>(10); // 1000.0f utx::print(x, y); }