[#BloombergLP-bdlc-PackedIntArrayImp-0a-insert-00]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/PackedIntArrayImp-0a.adoc[PackedIntArrayImp]::insert
:relfileprefix: ../../../
:mrdocs:

Insert into this array, at the specified `dstIndex`, the specified `numElements` values in the specified `srcArray` starting at the specified `srcIndex`&period; Elements greater than or equal to `dstIndex` are shifted up `numElements` positions&period; The behavior is undefined unless `dstIndex &lt;&equals; length()` and `srcIndex &plus; numElements &lt;&equals; srcArray&period;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/PackedIntArrayImp-0a.adoc[PackedIntArrayImp] const& srcArray,
    std::size&lowbar;t srcIndex,
    std::size&lowbar;t numElements);
----


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