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 XOR with another big-integer. May throw if allocation fails.



Example

xte::big_int n = 0b1010;
n ^= 0b1111;
std::println("{}", n);
Output:
5
[View in Compiler Explorer]