[#BloombergLP-bdlc-PackedIntArray-0b-remove-02]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/PackedIntArray-0b.adoc[PackedIntArray]::remove
:relfileprefix: ../../../
:mrdocs:

`remove` overloads

== Synopses

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

Remove the element at the specified `dstIndex`&period;


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

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

Remove elements in the half&hyphen;open range `&lsqb;dstFirst, dstLast)&rsqb;`&period;


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

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

Remove `numElements` starting at `dstIndex`&period;


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

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

== Return Value

iterator to the new position of the former `dstLast` element, or `end()` if `dstLast &equals;&equals; end()`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *dstIndex*
| index of the element to remove
| *dstFirst*
| iterator to the first element to remove
| *dstLast*
| iterator one past the last element to remove
| *numElements*
| number of elements to remove
|===


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