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