BloombergLP::bdlc::Queue::replace

replace overloads

Synopses

Declared in <bdlc_queue.h>

Replace the element at dstIndex with the specified item.

void
replace(
    int dstIndex,
    T const& item);
» more...

Replace elements at dstIndex with elements from srcQueue.

void
replace(
    int dstIndex,
    Queue const& srcQueue,
    int srcIndex,
    int numElements);
» more...

Parameters

NameDescription
dstIndexindex of the element to replace
itemreplacement value
srcQueuequeue providing replacement values
srcIndexfirst index in srcQueue to copy from
numElementsnumber of elements to replace