Defined in the standard header vector, and in the nonstandard backward-compatibility header vector.h.
Parameter | Description | Default |
---|---|---|
T | The vector's value type: the type of object that is stored in the vector. | |
Alloc | The | alloc |
Random Access Container, Back Insertion Sequence.
None, except for those imposed by the requirements of Random Access Container and Back Insertion Sequence.
None.
Member | Where defined | Description |
---|---|---|
value_type | Container | The type of object, |
pointer | Container | Pointer to |
reference | Container | Reference to |
const_reference | Container | Const reference to |
size_type | Container | An unsigned integral type. |
difference_type | Container | A signed integral type. |
iterator | Container | Iterator used to iterate through a |
const_iterator | Container | Const iterator used to iterate through a |
reverse_iterator | Reversible Container | Iterator used to iterate backwards through a |
const_reverse_iterator | Reversible Container | Const iterator used to iterate backwards through a |
iterator begin() | Container | Returns an |
iterator end() | Container | Returns an |
Вы читаете Standard Template Library Programmer's Guide