[#BloombergLP-bdlc-Queue-insert-095]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/Queue.adoc[Queue]::insert
:relfileprefix: ../../../
:mrdocs:

Insert the specified `srcQueue` into this queue at the specified `dstIndex`&period; All current values with indices at or above `dstIndex` are shifted up by `srcQueue&period;length()` index positions&period; The behavior is undefined unless `0 &lt;&equals; dstIndex &lt;&equals; length()`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
insert(
    int dstIndex,
    xref:BloombergLP/bdlc/Queue.adoc[Queue] const& srcQueue);
----


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