Standard C++ Library Reference ISO/IEC (VERSION3)

bool empty() const;
Alloc get_allocator() const;
reference at(size_type off);
const_reference at(size_type off) const;
reference operator[](size_type off);
const_reference operator[](size_type off);
reference front();
const_reference front() const;
reference back();
const_reference back() const;
void push_back(const Ty& val);
void pop_back();
template<class InIt>
void assign(InIt first, InIt last);
void assign(size_type count, const Ty& val);
iterator insert(iterator where, const Ty& val);
void insert(iterator where, size_type count, const Ty& val);
template<class InIt>
void insert(iterator where, InIt first, InIt last);
iterator erase(iterator where);
iterator erase(iterator first, iterator last);
void clear();
void swap(vector& right);
};
The template class describes an object that controls a varying-length sequence of elements of
type Ty. The sequence is stored as an array of Ty.
The object allocates and frees storage for the sequence it controls through a stored allocator
object of class Alloc. Such an allocator object must have the same external interface as an
object of template class allocator. Note that the stored allocator object is not copied when
the container object is assigned.
Vector reallocation occurs when a member function must grow the controlled sequence
beyond its current storage capacity. Other insertions and erasures may alter various storage
addresses within the sequence. In all such cases, iterators or references that point at altered
portions of the controlled sequence become invalid.
vector::allocator_type
typedef Alloc allocator_type;
The type is a synonym for the template parameter Alloc.