[#BloombergLP-bdlc-Queue-append-06] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/Queue.adoc[Queue]::append :relfileprefix: ../../../ :mrdocs: Append elements from `srcQueue` starting at `srcIndex` to this queue. == Synopsis Declared in `<bdlc_queue.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void append( xref:BloombergLP/bdlc/Queue.adoc[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 [cols="1,4"] |=== | Name| Description | *srcQueue* | queue providing values to append | *srcIndex* | first index in `srcQueue` to copy from | *numElements* | number of elements to append |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#