[#BloombergLP-bdlc-CompactedArray-remove-00]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/CompactedArray.adoc[CompactedArray]::remove
:relfileprefix: ../../../
:mrdocs:

`remove` overloads

== Synopses

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

Remove from this array the element at the specified `dstIndex`&period; Each element having an index greater than `dstIndex` before the removal is shifted down by one index position&period; The behavior is undefined unless `dstIndex &lt; length()`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/bdlc/CompactedArray/remove-05.adoc[remove](std::size&lowbar;t dstIndex);
----

[.small]#xref:BloombergLP/bdlc/CompactedArray/remove-05.adoc[_» more&period;&period;&period;_]#

Remove from this array the elements starting at the specified `dstFirst` iterator up to, but not including, the specified `dstLast` iterator&period; Each element at or above `dstLast` before the removal is shifted down by `dstLast &hyphen; dstFirst` index positions&period; Return an iterator to the new position of the element that was referred to by `dstLast`, or `end()` if `dstLast &equals;&equals; end()`&period; The behavior is undefined unless `dstFirst` and `dstLast` are iterators over this array, and `dstFirst &lt;&equals; dstLast`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlc/CompactedArray/const_iterator.adoc[CompactedArray&lt;TYPE&gt;::const&lowbar;iterator]
xref:BloombergLP/bdlc/CompactedArray/remove-0d.adoc[remove](
    xref:BloombergLP/bdlc/CompactedArray/const_iterator.adoc[const&lowbar;iterator] dstFirst,
    xref:BloombergLP/bdlc/CompactedArray/const_iterator.adoc[const&lowbar;iterator] dstLast);
----

[.small]#xref:BloombergLP/bdlc/CompactedArray/remove-0d.adoc[_» more&period;&period;&period;_]#

Remove from this array the specified `numElements` starting at the specified `dstIndex`&period; Each element having an index greater than or equal to `dstIndex &plus; numElements` before the removal is shifted down by `numElements` index positions&period; The behavior is undefined unless `dstIndex &plus; numElements &lt;&equals; length()`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/bdlc/CompactedArray/remove-09.adoc[remove](
    std::size&lowbar;t dstIndex,
    std::size&lowbar;t numElements);
----

[.small]#xref:BloombergLP/bdlc/CompactedArray/remove-09.adoc[_» more&period;&period;&period;_]#


[.small]#Created with https://www.mrdocs.com[MrDocs]#
