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



Example

xte::big_int n = 0b1010;
n |= 0b101;
std::println("{}", n);
Output:
15
[View in Compiler Explorer]