Definition

Defined in the standard header vector, and in the nonstandard backward-compatibility header vector.h.

Template parameters
Parameter Description Default
T The vector's value type: the type of object that is stored in the vector.
Alloc The vector 's allocator, used for all internal memory management. alloc
Model of

Random Access Container, Back Insertion Sequence.

Type requirements

None, except for those imposed by the requirements of Random Access Container and Back Insertion Sequence.

Public base classes

None.

Members
Member Where defined Description
value_type Container The type of object, T, stored in the vector.
pointer Container Pointer to T.
reference Container Reference to T
const_reference Container Const reference to T
size_type Container An unsigned integral type.
difference_type Container A signed integral type.
iterator Container Iterator used to iterate through a vector.
const_iterator Container Const iterator used to iterate through a vector.
reverse_iterator Reversible Container Iterator used to iterate backwards through a vector.
const_reverse_iterator Reversible Container Const iterator used to iterate backwards through a vector.
iterator begin() Container Returns an iterator pointing to the beginning of the vector.
iterator end() Container Returns an iterator pointing to the end of the vector.
Добавить отзыв
ВСЕ ОТЗЫВЫ О КНИГЕ В ИЗБРАННОЕ

0

Вы можете отметить интересные вам фрагменты текста, которые будут доступны по уникальной ссылке в адресной строке браузера.

Отметить Добавить цитату