Remove the element at position and return an iterator to the next.
Declared in <bslstl_list.h>
list<VALUE, ALLOCATOR>::iterator
erase(const_iterator position);
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.
iterator to the element following the erased element
| Name | Description |
|---|---|
| position | iterator to the element to remove |