vector& operator=(const vector&) | Container | The assignment operator |
void reserve(size_t) | vector | See below. |
vector reference front() | Sequence | Returns the first element. |
const_reference front() const | Sequence | Returns the first element. |
reference back() | Back Insertion Sequence | Returns the last element. |
const_reference back() const | Back Insertion Sequence | Returns the last element. |
void push_back(const T&) | Back Insertion Sequence | Inserts a new element at the end. |
void pop_back() | Back Insertion Sequence | Removes the last element. |
void swap(vector&) | Container | Swaps the contents of two vectors. |
iterator insert(iterator pos, const T& x) | Sequence | Inserts |
template <class InputIterator> void insert(iterator pos, InputIterator f, InputIterator l) [1] | Sequence | Inserts the range |
void insert(iterator pos, size_type n, const T& x) | Sequence | Inserts |
iterator erase(iterator pos) | Sequence | Erases the element at position |
iterator erase(iterator first, iterator last) | Sequence | Erases the range |
void clear() | Sequence | Erases all of the elements. |
void resize(n, t = T()) | Sequence | Inserts or erases elements at the end such that the size becomes |
bool operator==(const vector&, const vector&) | Forward Container | Tests two vectors for equality. This is a global function, not a member function. |
bool operator<(const vector&, const vector&) | Forward Container | Lexicographical comparison. This is a global function, not a member function. |
Вы читаете Standard Template Library Programmer's Guide