[#BloombergLP-bdlc-CompactedArray-insert-03a]
= 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 `dst`, an element having the specified `value`, shifting any elements originally at or above `dst` up by one index position&period; Return an iterator to the newly inserted element&period; The behavior is undefined unless `dst` is an iterator over this array&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlc/CompactedArray/const_iterator.adoc[CompactedArray&lt;TYPE&gt;::const&lowbar;iterator]
insert(
    xref:BloombergLP/bdlc/CompactedArray/const_iterator.adoc[const&lowbar;iterator] dst,
    TYPE const& value);
----


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