Standard C++ Library Class Reference

Iterators
iterator begin ();
Returns a random access iterator that points to the first element.
const_iterator begin () const;
Returns a random access const_iterator that points to the first element.
iterator end ();
Returns a random access iterator that points to the past-the-end value.
const_iterator end () const;
Returns a random access const_iterator that points to the past-the-end value.
reverse_iterator rbegin ();
Returns a random access reverse_iterator that points to the past-the-end value.
const_reverse_iterator rbegin () const;
Returns a random access const_reverse_iterator that points to the past-the-end value.
reverse_iterator rend ();
Returns a random access reverse_iterator that points to the first element.
const_reverse_iterator rend () const;
Returns a random access const_reverse_iterator that points to the first element.
Assignment Operator
vector<T, Allocator>& operator= (const vector<T, Allocator>&
x);
Erases all elements in self then inserts into self a copy of each element in x. Returns a
reference to self.
Allocator
allocator_type get_allocator () const;
Returns a copy of the allocator used by self for storage management.
Reference Operators
reference operator[] (size_type n);
Returns a reference to element n of self. The result can be used as an lvalue. The index n must
be between 0 and the size less one.
const_reference operator[] (size_type n) const;
Returns a constant reference to element n of self. The index n must be between 0 and the size