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, xte::big_int<T> rhs) noexcept(false);
Computes the bitwise XOR of two big-integers. May throw if allocation fails.



Example

static_assert((xte::big_int(0b1010) ^ 0b1111) == 0b101);
[View in Compiler Explorer]