toggle overloads
Declared in <bdlc_bitarray.h>
Complement the value of the bit at the specified index in this array. The behavior is undefined unless index < length().
void
toggle(std::size_t index);
» more...
Complement numBits bits in this array beginning at index.
void
toggle(
std::size_t index,
std::size_t numBits);
» more...
| Name | Description |
|---|---|
| index | bit position to complement |
| numBits | number of bits to complement |