[#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 `<bdlc_queue.h>` Replace the element at the specified `dstIndex` in this queue with the specified `item`. The behavior is undefined unless `0 <= dstIndex < length()`. Note that this function is logically equivalent to (but more efficient than): ` insert(dstIndex, item); remove(dstIndex + 1); ` [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..._]# Replace the specified `numElements` values beginning at the specified `dstIndex` in this queue with values from the specified `srcQueue` beginning at the specified `srcIndex`. The behavior is undefined unless `0 <= dstIndex, 0 <= numElements`, `dstIndex + numElements <= length()`, `0 <= srcIndex`, and `srcIndex + numElements <= srcQueue.length()`. Note that this function is logically equivalent to (but more efficient than): ` insert(dstIndex, srcQueue, srcIndex, numElements); remove(dstIndex + numElements, numElements); ` [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..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#