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

Name

Description

dstIndex

index at which to insert

srcArray

source array whose elements are inserted

Created with MrDocs