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