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

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


Definition

constexpr xte::big_int<T>& operator>>=(const xte::big_int<T>& 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]