[#bsl-map-0a7-erase-02] = xref:bsl.adoc[bsl]::xref:bsl/map-0a7.adoc[map]::erase :relfileprefix: ../../ :mrdocs: Erase the element at `position`. == Synopsis Declared in `<bslstl_map.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/map-0a7/iterator.adoc[map<KEY, VALUE, COMPARATOR, ALLOCATOR>::iterator] erase(xref:bsl/map-0a7/iterator.adoc[iterator] position); ---- == Description Same as the preceding overload, for a non‐const `iterator`. == Return Value iterator to the element 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]#