xieite ::big_int <UInt >::pow ()
Defined in header <xieite/math/big_int.hpp>
Raises a
xieite ::big_int <UInt > {}
to an exponent. Raising zero to a negative exponent throws std ::out_of_range {}
.Declaration
#0[[nodiscard ]]constexpr xieite ::big_int <UInt >pow (xieite ::big_int <UInt >exp )const ;
#1
[[nodiscard ]]constexpr xieite ::big_int <UInt >pow (std ::integral auto exp )const ;
Example
Output:int main () {xieite ::dump (xieite ::big_int (2 ).pow (3 ).str ()); }
[View in Compiler Explorer]8