[#bsl-map-0c7-erase-08]
= xref:bsl.adoc[bsl]::xref:bsl/map-0c7.adoc[map&lt;int, pair&lt;shared&lowbar;ptr&lt;Statistics&gt;, shared&lowbar;ptr&lt;Collector&lt;OsLinux&gt;&gt;&gt;&gt;]::erase
:relfileprefix: ../../
:mrdocs:

Remove from this map the `value&lowbar;type` object at the specified `position`, and return an iterator referring to the element immediately following the removed element, or to the past&hyphen;the&hyphen;end position if the removed element was the last element in the sequence of elements maintained by this map&period; This method invalidates only iterators and references to the removed element and previously saved values of the `end()` iterator&period; The behavior is undefined unless `position` refers to a `value&lowbar;type` object in this map&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/map-0c7/iterator.adoc[iterator]
erase(xref:bsl/map-0c7/const_iterator.adoc[const&lowbar;iterator] position);
----


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