[#BloombergLP-bdlc-PackedIntArray-0b-insert-0a0] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/PackedIntArray-0b.adoc[PackedIntArray]::insert :relfileprefix: ../../../ :mrdocs: Insert all elements of `srcArray` at `dstIndex`. == Synopsis Declared in `<bdlc_packedintarray.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void insert( std::size_t dstIndex, xref:BloombergLP/bdlc/PackedIntArray-0b.adoc[PackedIntArray] 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 [cols="1,4"] |=== | Name| Description | *dstIndex* | index at which to insert | *srcArray* | source array whose elements are inserted |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#