[#BloombergLP-bdlc-Queue-insert-09c] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/Queue.adoc[Queue]::insert :relfileprefix: ../../../ :mrdocs: Insert the specified `item` into this queue at the specified `dstIndex`. All current values with indices at or above `dstIndex` are shifted up by one index position. The behavior is undefined unless `0 <= dstIndex <= length()`. == Synopsis Declared in `<bdlc_queue.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void insert( int dstIndex, T const& item); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#