xte::big_int::operator&=()

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


Definition

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