flip overloads

Synopses

Declared in <bslstl_bitset.h>

Toggle all bits of this bitset and return a reference to this modifiable bitset.

bitset<N>&
flip() noexcept;

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

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

Return Value

reference to this modifiable bitset

Parameters

Name

Description

pos

index of the bit to toggle

Created with MrDocs