[#BloombergLP-bdlc-Queue-remove-03] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/Queue.adoc[Queue]::remove :relfileprefix: ../../../ :mrdocs: Remove `numElements` values beginning at the specified `index`. == Synopsis Declared in `<bdlc_queue.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void remove( int index, int numElements); ---- == Description Remove from this queue, beginning at the specified `index`, the specified `numElements` values. All values with initial indices at or above `index + numElements` are shifted down by `numElements` index positions. The behavior is undefined unless `0 <= index`, `0 <= numElements`, and `index + numElements <= length()`. == Parameters [cols="1,4"] |=== | Name| Description | *index* | first index of the range to remove | *numElements* | number of elements to remove |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#