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

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


Definition

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



Example

static_assert((xte::big_int(123) >> 3) == 15);
[View in Compiler Explorer]