[#BloombergLP-bdlc-CompactedArray-insert-03a] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/CompactedArray.adoc[CompactedArray]::insert :relfileprefix: ../../../ :mrdocs: Insert `value` into this array at the position of `dst`. == 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); ---- == Description 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. == Return Value iterator to the newly inserted element == Parameters [cols="1,4"] |=== | Name| Description | *dst* | iterator position at which to insert | *value* | value of the inserted element |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#