BloombergLP::bdlc::BitArray::insert

Insert repeated bit values at dstIndex in this array.

Synopsis

Declared in <bdlc_bitarray.h>

void
insert(
    std::size_t dstIndex,
    bool value,
    std::size_t numBits);

Description

Insert into this array at the specified dstIndex the specified numBits having the specified value. All values with indices at or above dstIndex in this array are shifted up by numBits bit positions. The behavior is undefined unless dstIndex <= length().

Parameters

NameDescription
dstIndexindex at which to insert
valuebit value to insert
numBitsnumber of bits to insert