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

`insert` overloads

== Synopses

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

Insert the specified `srcQueue` into this queue at `dstIndex`&period;


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

[.small]#xref:BloombergLP/bdlc/Queue/insert-095.adoc[_» more&period;&period;&period;_]#

Insert the specified `item` into this queue at `dstIndex`&period;


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

[.small]#xref:BloombergLP/bdlc/Queue/insert-09c.adoc[_» more&period;&period;&period;_]#

Insert elements from `srcQueue` into this queue at `dstIndex`&period;


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

[.small]#xref:BloombergLP/bdlc/Queue/insert-0b.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *dstIndex*
| index at which to insert
| *srcQueue*
| queue whose elements are inserted
| *item*
| value to insert
| *srcIndex*
| first index in `srcQueue` to copy from
| *numElements*
| number of elements to insert
|===


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