operator| function template — Performs bitwise inclusive or of two bitsets
template <size_t N>
bitset<N> operator|(const bitset<N>& a, const bitset<N>& b);
The |
operator takes two
bitset
s and returns a new
bitset
that represents the
bitwise inclusive or of the operands. In other
words, an output bit is set when the corresponding bit is set in
either operand, and an output bit is reset if the corresponding bits
in both operands are 0
.