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

Name

Description

index

starting bit position to remove

numBits

number of bits to remove

Created with MrDocs