BloombergLP::bdlc::Queue::append

Append elements from srcQueue starting at srcIndex to this queue.

Synopsis

Declared in <bdlc_queue.h>

void
append(
    Queue const& srcQueue,
    int srcIndex,
    int numElements);

Description

Append to the end of this queue the specified numElements value in the specified srcQueue starting at the specified index position srcIndex. Note that this function is logically equivalent to: ` insert(length(), srcQueue, srcIndex, numElements); ` The behavior is undefined unless 0 <= srcIndex, 0 <= numElements, and srcIndex + numElements <= srcQueue.length().

Parameters

NameDescription
srcQueuequeue providing values to append
srcIndexfirst index in srcQueue to copy from
numElementsnumber of elements to append