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