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

`remove` overloads

== Synopses

Declared in `&lt;bdlc&lowbar;packedintarray&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/PackedIntArrayImp-0a/remove-0c.adoc[remove](std::size&lowbar;t dstIndex);
----

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

Remove from this array, starting at the specified `dstIndex`, the specified `numElements`&period; Shift the elements of this array that are at `dstIndex &plus; numElements` or above to `numElements` indices lower&period; The behavior is undefined unless `dstIndex &plus; numElements &lt;&equals; length()`&period;


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

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


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