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

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


Definition

constexpr xte::big_int<T>& operator&=(xte::big_int<T> rhs) & noexcept(false);
Assigns the bitwise AND with another big-integer. May throw if allocation fails.



Example

xte::big_int n = 0b1010;
n &= 0b111;
std::println("{}", n);
Output:
2
[View in Compiler Explorer]