[#BloombergLP-bdlc-CompactedArray-insert-05] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/CompactedArray.adoc[CompactedArray]::insert :relfileprefix: ../../../ :mrdocs: Insert into this array, at the specified `dstIndex`, the elements from the specified `srcArray`, shifting any elements originally at or above `dstIndex` up by `srcArray.length()` index positions. 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. == Synopsis Declared in `<bdlc_compactedarray.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void insert( std::size_t dstIndex, xref:BloombergLP/bdlc/CompactedArray.adoc[CompactedArray] const& srcArray); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#