#include <stl_vector.h>
Inheritance diagram for std::vector:
Public Types | |
typedef _Tp | value_type |
typedef value_type* | pointer |
typedef const value_type* | const_pointer |
typedef __normal_iterator< pointer, vector_type> | iterator |
typedef __normal_iterator< const_pointer, vector_type> | const_iterator |
typedef value_type& | reference |
typedef const value_type& | const_reference |
typedef size_t | size_type |
typedef ptrdiff_t | difference_type |
typedef _Base::allocator_type | allocator_type |
typedef reverse_iterator<const_iterator> | const_reverse_iterator |
typedef reverse_iterator<iterator> | reverse_iterator |
Public Methods | |
allocator_type | get_allocator () const |
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
reverse_iterator | rbegin () |
const_reverse_iterator | rbegin () const |
reverse_iterator | rend () |
const_reverse_iterator | rend () const |
size_type | size () const |
size_type | max_size () const |
size_type | capacity () const |
bool | empty () const |
reference | operator[] (size_type __n) |
const_reference | operator[] (size_type __n) const |
void | _M_range_check (size_type __n) const |
reference | at (size_type __n) |
const_reference | at (size_type __n) const |
vector (const allocator_type &__a=allocator_type()) | |
vector (size_type __n, const _Tp &__value, const allocator_type &__a=allocator_type()) | |
vector (size_type __n) | |
vector (const vector< _Tp, _Alloc > &__x) | |
template<class _InputIterator> | vector (_InputIterator __first, _InputIterator __last, const allocator_type &__a=allocator_type()) |
template<class _Integer> void | _M_initialize_aux (_Integer __n, _Integer __value, __true_type) |
template<class _InputIterator> void | _M_initialize_aux (_InputIterator __first, _InputIterator __last, __false_type) |
~vector () | |
vector<_Tp, _Alloc>& | operator= (const vector< _Tp, _Alloc > &__x) |
void | reserve (size_type __n) |
void | assign (size_type __n, const _Tp &__val) |
void | _M_fill_assign (size_type __n, const _Tp &__val) |
template<class _InputIterator> void | assign (_InputIterator __first, _InputIterator __last) |
template<class _Integer> void | _M_assign_dispatch (_Integer __n, _Integer __val, __true_type) |
template<class _InputIter> void | _M_assign_dispatch (_InputIter __first, _InputIter __last, __false_type) |
template<class _InputIterator> void | _M_assign_aux (_InputIterator __first, _InputIterator __last, input_iterator_tag) |
template<class _ForwardIterator> void | _M_assign_aux (_ForwardIterator __first, _ForwardIterator __last, forward_iterator_tag) |
reference | front () |
const_reference | front () const |
reference | back () |
const_reference | back () const |
void | push_back (const _Tp &__x) |
void | push_back () |
void | swap (vector< _Tp, _Alloc > &__x) |
iterator | insert (iterator __position, const _Tp &__x) |
iterator | insert (iterator __position) |
template<class _InputIterator> void | insert (iterator __pos, _InputIterator __first, _InputIterator __last) |
template<class _Integer> void | _M_insert_dispatch (iterator __pos, _Integer __n, _Integer __val, __true_type) |
template<class _InputIterator> void | _M_insert_dispatch (iterator __pos, _InputIterator __first, _InputIterator __last, __false_type) |
void | insert (iterator __pos, size_type __n, const _Tp &__x) |
void | _M_fill_insert (iterator __pos, size_type __n, const _Tp &__x) |
void | pop_back () |
iterator | erase (iterator __position) |
iterator | erase (iterator __first, iterator __last) |
void | resize (size_type __new_size, const _Tp &__x) |
void | resize (size_type __new_size) |
void | clear () |
Protected Methods | |
void | _M_insert_aux (iterator __position, const _Tp &__x) |
void | _M_insert_aux (iterator __position) |
template<class _ForwardIterator> pointer | _M_allocate_and_copy (size_type __n, _ForwardIterator __first, _ForwardIterator __last) |
template<class _InputIterator> void | _M_range_initialize (_InputIterator __first, _InputIterator __last, input_iterator_tag) |
template<class _ForwardIterator> void | _M_range_initialize (_ForwardIterator __first, _ForwardIterator __last, forward_iterator_tag) |
template<class _InputIterator> void | _M_range_insert (iterator __pos, _InputIterator __first, _InputIterator __last, input_iterator_tag) |
template<class _ForwardIterator> void | _M_range_insert (iterator __pos, _ForwardIterator __first, _ForwardIterator __last, forward_iterator_tag) |
Private Types | |
typedef _Vector_base<_Tp, _Alloc> | _Base |
typedef vector<_Tp, _Alloc> | vector_type |
Private Methods | |
__glibcpp_class_requires (_Tp, _SGIAssignableConcept) |
|
Reimplemented from std::_Vector_base. Definition at line 124 of file stl_vector.h. |
|
Reimplemented from std::_Vector_base. Definition at line 137 of file stl_vector.h. |
|
Definition at line 131 of file stl_vector.h. |
|
Definition at line 129 of file stl_vector.h. |
|
Definition at line 133 of file stl_vector.h. |
|
Definition at line 140 of file stl_vector.h. |
|
Definition at line 135 of file stl_vector.h. |
|
Definition at line 130 of file stl_vector.h. |
|
Definition at line 128 of file stl_vector.h. |
|
Definition at line 132 of file stl_vector.h. |
|
Definition at line 141 of file stl_vector.h. |
|
Definition at line 134 of file stl_vector.h. |
|
Definition at line 127 of file stl_vector.h. |
|
Definition at line 125 of file stl_vector.h. |
|
Definition at line 192 of file stl_vector.h. |
|
Definition at line 195 of file stl_vector.h. |
|
Definition at line 200 of file stl_vector.h. |
|
Definition at line 204 of file stl_vector.h. |
|
Definition at line 210 of file stl_vector.h. |
|
Definition at line 229 of file stl_vector.h. |
|
Definition at line 375 of file stl_vector.h. Referenced by reserve(). |
|
|
|
Referenced by _M_assign_dispatch(). |
|
Definition at line 263 of file stl_vector.h. |
|
Definition at line 259 of file stl_vector.h. Referenced by assign(). |
|
Referenced by _M_assign_dispatch(), and assign(). |
|
Referenced by _M_insert_dispatch(), and insert(). |
|
Definition at line 224 of file stl_vector.h. |
|
Definition at line 217 of file stl_vector.h. Referenced by vector(). |
|
|
|
|
|
Definition at line 334 of file stl_vector.h. |
|
Definition at line 329 of file stl_vector.h. Referenced by insert(). |
|
Definition at line 182 of file stl_vector.h. Referenced by at(). |
|
Definition at line 396 of file stl_vector.h. |
|
Definition at line 387 of file stl_vector.h. Referenced by _M_initialize_aux(). |
|
|
|
Referenced by _M_insert_dispatch(). |
|
|
|
Definition at line 253 of file stl_vector.h. |
|
Definition at line 249 of file stl_vector.h. |
|
Definition at line 189 of file stl_vector.h. |
|
Definition at line 187 of file stl_vector.h. |
|
Definition at line 277 of file stl_vector.h. |
|
Definition at line 276 of file stl_vector.h. |
|
Definition at line 156 of file stl_vector.h. |
|
Definition at line 155 of file stl_vector.h. Referenced by capacity(), clear(), empty(), front(), insert(), operator[](), rend(), resize(), and size(). |
|
Definition at line 174 of file stl_vector.h. Referenced by reserve(). |
|
Definition at line 370 of file stl_vector.h. |
|
Definition at line 176 of file stl_vector.h. |
|
Definition at line 159 of file stl_vector.h. |
|
Definition at line 158 of file stl_vector.h. Referenced by back(), clear(), empty(), erase(), insert(), push_back(), rbegin(), resize(), and size(). |
|
Definition at line 356 of file stl_vector.h. |
|
Definition at line 349 of file stl_vector.h. |
|
Definition at line 275 of file stl_vector.h. |
|
Definition at line 274 of file stl_vector.h. |
|
Reimplemented from std::_Vector_alloc_base. Definition at line 138 of file stl_vector.h. |
|
Definition at line 340 of file stl_vector.h. |
|
Definition at line 323 of file stl_vector.h. |
|
Definition at line 311 of file stl_vector.h. |
|
Definition at line 301 of file stl_vector.h. Referenced by resize(). |
|
Definition at line 172 of file stl_vector.h. |
|
|
|
Definition at line 180 of file stl_vector.h. |
|
Definition at line 179 of file stl_vector.h. |
|
Definition at line 345 of file stl_vector.h. |
|
Definition at line 287 of file stl_vector.h. Referenced by _M_range_initialize(). |
|
Definition at line 279 of file stl_vector.h. |
|
Definition at line 163 of file stl_vector.h. |
|
Definition at line 161 of file stl_vector.h. |
|
Definition at line 167 of file stl_vector.h. |
|
Definition at line 165 of file stl_vector.h. |
|
Definition at line 232 of file stl_vector.h. |
|
Definition at line 369 of file stl_vector.h. |
|
Definition at line 363 of file stl_vector.h. Referenced by resize(). |
|
Definition at line 170 of file stl_vector.h. Referenced by _M_range_check(), reserve(), and resize(). |
|
Definition at line 295 of file stl_vector.h. |