[#BloombergLP-bdlc-PackedIntArray-08-remove-01b]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/PackedIntArray-08.adoc[PackedIntArray&lt;int&gt;]::remove
:relfileprefix: ../../../
:mrdocs:

Remove from this array the elements starting from the specified `dstFirst` up to, but not including, the specified `dstLast`, shifting the elements of this array that are at or above `dstLast` to `dstLast &hyphen; dstFirst` indices lower&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 &lt;&equals; dstLast`&period;

== Synopsis

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

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


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