[#BloombergLP-bdlc-PackedIntArray-08-insert-03]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/PackedIntArray-08.adoc[PackedIntArray&lt;int&gt;]::insert
:relfileprefix: ../../../
:mrdocs:

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&period;length()` indices higher&period; The behavior is undefined unless `dstIndex &lt;&equals; length()`&period; Note that if this array and `srcArray` are the same, the behavior is as if a copy of `srcArray` were passed&period;

== Synopsis

Declared in `&lt;bdlc&lowbar;packedintarray&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
insert(
    std::size&lowbar;t dstIndex,
    xref:BloombergLP/bdlc/PackedIntArray-0b.adoc[PackedIntArray&lt;int&gt;] const& srcArray);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
