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 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]