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