BloombergLP::bdlc::PackedIntArrayImp::insert

Insert all elements of srcArray at dstIndex.

Synopsis

Declared in <bdlc_packedintarray.h>

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

Description

Insert into this array, at the specified dstIndex, the sequence of values represented by the specified srcArray, shifting any elements originally at or above dstIndex up by srcArray.length() indices higher. The behavior is undefined unless dstIndex <= length(). Note that if this array and srcArray are the same, the behavior is as if a copy of srcArray were passed.

Parameters

NameDescription
dstIndexindex at which to insert
srcArraysource array whose elements are inserted