[#bsl-list-054-erase-02] = xref:bsl.adoc[bsl]::xref:bsl/list-054.adoc[list]::erase :relfileprefix: ../../ :mrdocs: Remove from this list the element at the specified `position`, and return an iterator providing modifiable access to the element immediately following the removed element, or to the position returned by the `end` method if the removed element was the last in the sequence. The behavior is undefined unless `position` refers to an element in this list. == Synopsis Declared in `<bslstl_list.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/list-054/iterator.adoc[list<VALUE, ALLOCATOR>::iterator] erase(xref:bsl/list-054/const_iterator.adoc[const_iterator] position); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#