This page contains five tables. The first gives a list of all member
functions common to all first-class containers (vector, deque, list,
map, multimap, set, multiset). The second gives a list of all additional
member functions common to all sequential containers (vector, deque, list).
The third ...
| default constructor |
Constructs an empty container.
Containers will have other constructors as well. |
| copy constructor |
Construct a copy of an already existing container of the same type. |
| destructor |
Clean up when container no longer needed. |
| operator= |
Assign one container to another. |
| operator== |
Test for equality, lexicographically. |
| operator!= |
Test for inequality, lexicographically. |
| operator< |
Test for less than, lexicographically. |
| operator<= |
Test for less than or equal to, lexicographically. |
| operator> |
Test for greater than, lexicographically. |
| operator>= |
Test for greater than or equal to, lexicographically. |
| empty |
Test if container is empty. |
| max_size |
Return maximum number of components container can hold. |
| size |
Return number of elements container currently holds. |
| swap |
Exchange all components with those of another container. |
| insert |
Insert one or more components into a container. |
| erase |
Erases one or more components from a container. |
| clear |
Erases all components from a container. |
| begin |
Return an iterator or const_iterator pointing
to the first component. |
| end |
Return an iterator or const_iterator pointing
to one-past-the-last component. |
| rbegin |
Return a reverse_iterator or
const_reverse_iterator pointing to the last component. |
| rend |
Return a reverse_iterator or
const_reverse_iterator pointing to
one-before-the-first component. |