bsl::bitset::operator|=

Set bits of this bitset where the corresponding bits of rhs are 1.

Synopsis

Declared in <bslstl_bitset.h>

bitset<N>&
operator|=(bitset const& rhs) noexcept;

Description

Set each bit of this bitset for each corresponding bit that is 1 in the specified rhs, and leaves all other bits unchanged. Return a reference to this modifiable bitset. Note that this is equivalent to a bitwise AND.

Return Value

reference to this modifiable bitset

Parameters

NameDescription
rhsbitset providing bits that are OR'd into this object