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