xte::big_int::operator>>=()

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


Definition

constexpr xte::big_int& operator>>=(const xte::big_int& rhs) & noexcept(false);
Shifts the bits of the big-integer leftward, or rightward if rhs is negative. May throw if allocation fails.



Example

xte::big_int n = 2938746987;
n >>= 14;
std::println("{}", n);
Output:
179366
[View in Compiler Explorer]