[#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. Return an iterator to the newly inserted element. The behavior is undefined unless `dst` is an iterator over this array. == Synopsis Declared in `<bdlc_compactedarray.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlc/CompactedArray/const_iterator.adoc[CompactedArray<TYPE>::const_iterator] insert( xref:BloombergLP/bdlc/CompactedArray/const_iterator.adoc[const_iterator] dst, TYPE const& value); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#