Standard C++ Library Class Reference
iterator
erase (iterator position);
Deletes the vector element pointed to by the iterator position. Returns an iterator pointing to
the element following the deleted element, or end() if the deleted element was the last one in
this vector.
iterator
erase (iterator first, iterator last);
Deletes the vector elements in the range (first, last). Returns an iterator pointing to the element
following the last deleted element, or end() if there were no elements in the deleted range.
void
flip();
Flips all the bits in the vector. This member function is only defined for vector<bool>.
reference
front ();
Returns a reference to the first element.
const_reference
front () const;
Returns a constant reference to the first element.
iterator
insert (iterator position);
Inserts x before position. The return value points to the inserted x.
iterator
insert (iterator position, const T& x);
Inserts x before position. The return value points to the inserted x.
void
insert (iterator position, size_type n, const T& x);
Inserts n copies of x before position.
template <class InputIterator>
void
insert (iterator position, InputIterator first,
InputIterator last);
Inserts copies of the elements in the range [first, last] before position.
size_type
max_size () const;
Returns size() of the largest possible vector.
void