bsl::bitset::flip

Toggle the bit at the specified pos of this bitset and return a reference to this modifiable bitset.

Synopsis

Declared in <bslstl_bitset.h>

bitset<N>&
flip(std::size_t pos);

Return Value

reference to this modifiable bitset

Parameters

NameDescription
posindex of the bit to toggle