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

`replace` overloads

== Synopses

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

Replace the element at `dstIndex` with the specified `item`&period;


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

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

Replace elements at `dstIndex` with elements from `srcQueue`&period;


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

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *dstIndex*
| index of the element to replace
| *item*
| replacement value
| *srcQueue*
| queue providing replacement values
| *srcIndex*
| first index in `srcQueue` to copy from
| *numElements*
| number of elements to replace
|===


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