Standard C++ Library Reference ISO/IEC (VERSION3)
slist::const_pointer
typedef typename A::const_pointer
const_pointer;
The type describes an object that can serve as a constant pointer to an element of the controlled
sequence.
slist::const_reference
typedef typename A::const_reference const_reference;
The type describes an object that can serve as a constant reference to an element of the
controlled sequence.
slist::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.
slist::empty
bool empty() const;
The member function returns true for an empty controlled sequence.
slist::end
const_iterator end() const;
iterator end();
The member function returns a forward iterator that points just beyond the end of the sequence.
slist::erase
iterator erase(iterator it);
iterator erase(iterator first, iterator last);
The first member function removes the element of the controlled sequence pointed to by it.
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