operator& function template — Performs bitwise and 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 and of the operands. In other words, an
output bit is set only when the corresponding bit is set in both
operands; otherwise, an output bit is reset.
bitset class template,
operator|
function template
, operator^
function template
, <cstddef>
, bit_and
keyword