[#bsl-map-0c7-erase-040]
= 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 whose key is equivalent the specified `key`, if such an entry exists, and return 1&semi; otherwise, if there is no `value&lowbar;type` object having an equivalent key, return 0 with no other effect&period; This method invalidates only iterators and references to the removed element and previously saved values of the `end()` iterator&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/map-0c7/size_type.adoc[size&lowbar;type]
erase(xref:bsl/map-0c7/key_type.adoc[key&lowbar;type] const& key);
----


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