insert overloads

Synopses

Declared in <bdlc_bitarray.h>

Insert a single bit value at dstIndex in this array.

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

Insert all bits from srcArray at dstIndex in this array.

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

Insert repeated bit values at dstIndex in this array.

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

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

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

Parameters

Name

Description

dstIndex

index at which to insert

value

bit value to insert

srcArray

array whose bits are inserted

numBits

number of bits to insert

srcIndex

starting index in srcArray

Created with MrDocs