[#bsl-unordered_map-02b-erase-05]
= xref:bsl.adoc[bsl]::xref:bsl/unordered_map-02b.adoc[unordered&lowbar;map]::erase
:relfileprefix: ../../
:mrdocs:

Erase the element at `position`&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;unorderedmap&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/unordered_map-02b/iterator.adoc[iterator]
erase(xref:bsl/unordered_map-02b/iterator.adoc[iterator] position);
----

== Description

Remove from this unordered map the `value&lowbar;type` object at the specified `position`, and return an iterator referring to the element immediately following the removed element&period; The behavior is undefined unless `position` refers to a `value&lowbar;type` object in this unordered map&period;

== Return Value

iterator following the erased element

== Parameters

[cols="1,4"]
|===
| Name| Description
| *position*
| iterator to the element to erase
|===


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