Standard C++ Library Reference ISO/IEC (VERSION3)
list::const_reverse_iterator
typedef reverse_iterator<const_iterator>
const_reverse_iterator;
The type describes an object that can serve as a constant reverse bidirectional iterator for the
controlled sequence.
list::difference_type
typedef T3 difference_type;
The signed integer type describes an object that can represent the difference between the
addresses of any two elements in the controlled sequence. It is described here as a synonym for
the implementation-defined type T3.
list::empty
bool empty() const;
The member function returns true for an empty controlled sequence.
list::end
const_iterator end() const;
iterator end();
The member function returns a bidirectional iterator that points just beyond the end of the
sequence.
list::erase
iterator erase(iterator where);
iterator erase(iterator first, iterator last);
The first member function removes the element of the controlled sequence pointed to by
where. The second member function removes the elements of the controlled sequence in the
range [first, last). Both return an iterator that designates the first element remaining
beyond any elements removed, or end() if no such element exists.
Erasing N elements causes N destructor calls. No reallocation occurs, so iterators and references
become invalid only for the erased elements.
The member functions never throw an exception.