Standard C++ Library Class Reference
pop_back ();
Removes the last element of self.
void 
push_back (const T& x);
Inserts a copy of x to the end of self.
void 
reserve (size_type n);
Increases the capacity of self in anticipation of adding new elements. reserve itself does not
add any new elements. After a call to reserve, capacity() is greater than or equal to n and
subsequent insertions will not cause a reallocation until the size of the vector exceeds n.
Reallocation does not occur if n is less than capacity(). If reallocation does occur, then all
iterators and references pointing to elements in the vector are invalidated. reserve takes at most
linear time in the size of self.
void 
resize (size_type sz);
Alters the size of self. If the new size (sz) is greater than the current size, then sz-size()
instances of the default value of type T are inserted at the end of the vector. If the new size is
smaller than the current capacity, then the vector is truncated by erasing size()-sz elements off
the end. If sz is equal to capacity then no action is taken.
void 
resize (size_type sz, T c);
Alters the size of self. If the new size (sz) is greater than the current size, then sz-size() c's are
inserted at the end of the vector. If the new size is smaller than the current capacity, then the
vector is truncated by erasing size()-sz elements off the end. If sz is equal to capacity then no
action is taken.
size_type 
size () const;
Returns the number of elements.
void 
swap (vector<T, Allocator>& x);
Exchanges self with x, by swapping all elements.
void
swap(reference x, reference y);
Swaps the values of x and y. This is a member function of vector<bool> only.
Non-member Operators
template <class T, class Allocator>
bool operator== (const vector<T, Allocator>& x,










