Standard C++ Library Reference ISO/IEC (VERSION3)
The member function never throws an exception.
slist::remove_if
templace<class Pred>
void remove_if(Pred pr);
The member function removes from the controlled sequence all elements, designated by the
iterator P, for which pr(*P) is true.
An exception occurs only if pr throws an exception. In that case, the controlled sequence is left
in an unspecified state and the exception is rethrown.
slist::resize
void resize(size_type n);
void resize(size_type n, T x);
The member functions both ensure that size() henceforth returns n. If it must make the
controlled sequence longer, the first member function appends elements with value T(), while
the second member function appends elements with value x. To make the controlled sequence
shorter, both member functions call erase(begin() + n, end()).
slist::reverse
void reverse();
The member function reverses the order in which elements appear in the controlled sequence.
slist::size
size_type size() const;
The member function returns the length of the controlled sequence.
slist::size_type
typedef T2 size_type;
The unsigned integer type describes an object that can represent the length of any controlled
sequence. It is described here as a synonym for the implementation-defined type T2.