[#BloombergLP-bdlc-PackedIntArrayImp-0a-insert-0d]
= 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`, an element of specified `value`, shifting any elements originally at or above `dstIndex` up by one&period; The behavior is undefined unless `dstIndex &lt;&equals; length()`&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/ElementType.adoc[ElementType] value);
----


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