[#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`&period;

== Synopsis

Declared in `&lt;bdlc&lowbar;queue&period;h&gt;`

[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&period; All values with initial indices at or above `index &plus; numElements` are shifted down by `numElements` index positions&period; The behavior is undefined unless `0 &lt;&equals; index`, `0 &lt;&equals; numElements`, and `index &plus; numElements &lt;&equals; length()`&period;

== 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]#
