xte::big_int::operator<<()

Defined in header <xte/math/big_int.hpp>


Definition

[[nodiscard]] friend constexpr xte::big_int operator<<(xte::big_int lhs, const xte::big_int& rhs) noexcept(false);
Computes a big-integer with the bits of the big-integer leftward, or rightward if rhs is negative. May throw if allocation fails.



Example

static_assert((xte::big_int(1) << 3) == 8);
[View in Compiler Explorer]