Insert a bit range from srcArray at dstIndex in this array.

Synopsis

Declared in <bdlc_bitarray.h>

void
insert(
    std::size_t dstIndex,
    BitArray const& srcArray,
    std::size_t srcIndex,
    std::size_t numBits);

Description

Insert into this array, beginning at the specified dstIndex, the specified numBits from the specified srcArray beginning at the specified srcIndex. All values with initial indices at or above dstIndex are shifted up by numBits positions. The behavior is undefined unless dstIndex <= length() and srcIndex + numBits <= srcArray.length().

Parameters

Name

Description

dstIndex

index at which to insert

srcArray

array providing the bits to insert

srcIndex

starting index in srcArray

numBits

number of bits to insert

Created with MrDocs