BigInt.pow

private BigInt pow(ref const BigInt base, ulong exp) pure @safe

Raises a BigInt to an integral power using exponentiation by squaring.

Parameters

baseThe base to be raised to a power
expThe exponent (must be non-negative)

Returns

base ^^ exp

Throws

Exception if exp is negative