Standard C++ Library Reference ISO/IEC (VERSION3)

become invalid only for the erased elements.
The member functions never throw an exception.
slist::front
reference front();
const_reference front() const;
The member function returns a reference to the first element of the controlled sequence, which
must be non-empty.
slist::get_allocator
A get_allocator() const;
The member function returns the stored allocator object.
slist::insert
iterator insert(iterator it, const T& x);
void insert(iterator it, size_type n, const T& x);
template<class InIt>
void insert(iterator it, InIt first, InIt last);
Each of the member functions inserts, before the element pointed to by it in the controlled
sequence, a sequence specified by the remaining operands. The first member function inserts a
single element with value x and returns an iterator that points to the newly inserted element.
The second member function inserts a repetition of n elements of value x.
If InIt is an integer type, the last member function behaves the same as insert(it,
(size_type)first, (T)last). Otherwise, the last member function inserts the
sequence [first, last), which must not overlap the initial controlled sequence.
Inserting N elements causes N constructor calls. No reallocation occurs, so no iterators or
references become invalid.
If an exception is thrown during the insertion of one or more elements, the container is left
unaltered and the exception is rethrown.
slist::iterator
typedef T0 iterator;
The type describes an object that can serve as a forward iterator for the controlled sequence. It
is described here as a synonym for the implementation-defined type T0.