Standard C++ Library Class Reference
Returns a bidirectional iterator that points to the past-the-end value.
const_iterator end () const;
Returns a constant bidirectional iterator that points to the past-the-end value.
reverse_iterator rbegin ();
Returns a bidirectional iterator that points to the past-the-end value.
const_reverse_iterator rbegin () const;
Returns a constant bidirectional iterator that points to the past-the-end value.
reverse_iterator rend ();
Returns a bidirectional iterator that points to the first element.
const_reverse_iterator rend () const;
Returns a constant bidirectional iterator that points to the first element.
Member Functions
template <class InputIterator>
void
assign (InputIterator first, InputIterator last);
Erases all elements contained in self, then inserts new elements from the range [first, last).
template <class Size, class T>
void
assign (Size n);
Erases all elements contained in self, then inserts n instances of the default value of t.
template <class Size, class T>
void
assign (Size n, const T& t);
Erases all elements contained in self, then inserts n instances of the value of t.
reference
back ();
Returns a reference to the last element.
const_reference
back () const;
Returns a constant reference to the last element.
void
clear ();
Erases all elements from the list.
bool
empty () const;
Returns true if the size is zero.
iterator
erase (iterator position);