BloombergLP::bdlc::BitArray::remove

Remove numBits bits beginning at index, shifting higher bits down.

Synopsis

Declared in <bdlc_bitarray.h>

void
remove(
    std::size_t index,
    std::size_t numBits);

Description

Remove from this array the specified numBits, beginning at the specified index. All values at indices above index in this array are shifted down by numBits positions. The length of this array is reduced by numBits. The behavior is undefined unless index + numBits <= length().

Parameters

NameDescription
indexstarting bit position to remove
numBitsnumber of bits to remove