Definition at line 49 of file debug/vector.
|
Default constructor creates no elements.
Reimplemented from std::vector< _Tp, _Allocator >. Definition at line 79 of file debug/vector. |
|
Builds a vector from a range.
If the iterators are forward, bidirectional, or random-access, then this will call the elements' copy constructor N times (where N is distance(first,last)) and do no memory reallocation. But if only input iterators are used, then this will do at most 2N calls to the copy constructor, and logN memory reallocations. Reimplemented from std::vector< _Tp, _Allocator >. Definition at line 87 of file debug/vector. |
|
Construction from a release-mode vector.
Definition at line 98 of file debug/vector. |
|
The dtor only erases the elements, and note that if the elements themselves are pointers, the pointed-to memory is not touched in any way. Managing the pointer is the user's responsibilty. Reimplemented from std::vector< _Tp, _Allocator >. Definition at line 101 of file debug/vector. |
|
Detach all iterators, leaving them singular. Referenced by __gnu_debug::_Safe_sequence_base::~_Safe_sequence_base(). |
|
Detach all singular iterators.
Referenced by std::__debug::deque< _Tp, _Allocator >::erase(), and std::__debug::list< _Tp, _Allocator >::resize(). |
|
For use in _Safe_sequence. |
|
|
Invalidates all iterators Referenced by std::__debug::vector< _Tp, _Allocator >::erase(), std::__debug::vector< _Tp, _Allocator >::insert(), and std::__debug::vector< _Tp, _Allocator >::resize(). |
|
Revalidates all attached singular iterators. This method may be used to validate iterators that were invalidated before (but for some reasion, such as an exception, need to become valid again). Referenced by std::__debug::deque< _Tp, _Allocator >::erase(). |
|
Swap this sequence with the given sequence. This operation also swaps ownership of the iterators, so that when the operation is complete all iterators that originally referenced one container now reference the other container. Referenced by std::__debug::vector< _Tp, _Allocator >::swap(), __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::swap(), std::__debug::set< _Key, _Compare, _Allocator >::swap(), std::__debug::multiset< _Key, _Compare, _Allocator >::swap(), std::__debug::multimap< _Key, _Tp, _Compare, _Allocator >::swap(), std::__debug::map< _Key, _Tp, _Compare, _Allocator >::swap(), __gnu_cxx::__debug::hash_set< _Value, _HashFcn, _EqualKey, _Alloc >::swap(), __gnu_cxx::__debug::hash_multiset< _Value, _HashFcn, _EqualKey, _Alloc >::swap(), __gnu_cxx::__debug::hash_multimap< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >::swap(), and __gnu_cxx::__debug::hash_map< _Value, _Tp, _HashFcn, _EqualKey, _Alloc >::swap(). |
|
Transfers all iterators that reference this memory location to this sequence from whatever sequence they are attached to. |
|
Assigns a given value to a vector.
Definition at line 293 of file stl_vector.h. Referenced by std::__debug::vector< _Tp, _Allocator >::assign(). |
|
Assigns a range to a vector.
Note that the assignment completely changes the vector and that the resulting vector's size is the same as the number of elements assigned. Old data may be lost. Reimplemented from std::vector< _Tp, _Allocator >. Definition at line 114 of file debug/vector. References __glibcxx_check_valid_range, __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::vector< _Tp, _Allocator >::assign(). |
|
Provides access to the data contained in the vector.
Definition at line 532 of file stl_vector.h. |
|
Provides access to the data contained in the vector.
Definition at line 514 of file stl_vector.h. |
|
Returns a read-only (constant) reference to the data at the last element of the vector. Reimplemented from std::vector< _Tp, _Allocator >. Definition at line 233 of file debug/vector. References __glibcxx_check_nonempty, and std::vector< _Tp, _Allocator >::back(). |
|
Returns a read/write reference to the data at the last element of the vector. Reimplemented from std::vector< _Tp, _Allocator >. Definition at line 226 of file debug/vector. References __glibcxx_check_nonempty, and std::vector< _Tp, _Allocator >::back(). |
|
Returns a read-only (constant) iterator that points to the first element in the vector. Iteration is done in ordinary element order. Reimplemented from std::vector< _Tp, _Allocator >. Definition at line 138 of file debug/vector. References std::vector< _Tp, _Allocator >::begin(). |
|
Returns a read/write iterator that points to the first element in the vector. Iteration is done in ordinary element order. Reimplemented from std::vector< _Tp, _Allocator >. Definition at line 134 of file debug/vector. References std::vector< _Tp, _Allocator >::begin(). Referenced by std::__debug::vector< _Tp, _Allocator >::erase(), std::__debug::vector< _Tp, _Allocator >::insert(), std::__debug::vector< _Tp, _Allocator >::rend(), and std::__debug::vector< _Tp, _Allocator >::resize(). |
|
Returns the total number of elements that the vector can hold before needing to allocate more memory. Definition at line 429 of file stl_vector.h. |
|
Erases all the elements. Note that this function only erases the elements, and that if the elements themselves are pointers, the pointed-to memory is not touched in any way. Managing the pointer is the user's responsibilty. Reimplemented from std::vector< _Tp, _Allocator >. Definition at line 346 of file debug/vector. References __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::vector< _Tp, _Allocator >::clear(). |
|
Returns a pointer such that [data(), data() + size()) is a valid range. For a non-empty vector, data() == &front(). Definition at line 578 of file stl_vector.h. |
|
Returns true if the vector is empty. (Thus begin() would equal end().) Definition at line 438 of file stl_vector.h. |
|
Returns a read-only (constant) iterator that points one past the last element in the vector. Iteration is done in ordinary element order. Reimplemented from std::vector< _Tp, _Allocator >. Definition at line 146 of file debug/vector. References std::vector< _Tp, _Allocator >::end(). |
|
Returns a read/write iterator that points one past the last element in the vector. Iteration is done in ordinary element order. Reimplemented from std::vector< _Tp, _Allocator >. Definition at line 142 of file debug/vector. References std::vector< _Tp, _Allocator >::end(). Referenced by std::__debug::vector< _Tp, _Allocator >::pop_back(), and std::__debug::vector< _Tp, _Allocator >::rbegin(). |
|
Remove a range of elements.
Note This operation could be expensive and if it is frequently used the user should consider using std::list. The user is also cautioned that this function only erases the elements, and that if the elements themselves are pointers, the pointed-to memory is not touched in any way. Managing the pointer is the user's responsibilty. |
|
Remove element at given position.
Note This operation could be expensive and if it is frequently used the user should consider using std::list. The user is also cautioned that this function only erases the element, and that if the element is itself a pointer, the pointed-to memory is not touched in any way. Managing the pointer is the user's responsibilty. Referenced by std::__debug::vector< _Tp, _Allocator >::erase(). |
|
Returns a read-only (constant) reference to the data at the first element of the vector. Reimplemented from std::vector< _Tp, _Allocator >. Definition at line 219 of file debug/vector. References __glibcxx_check_nonempty, and std::vector< _Tp, _Allocator >::front(). |
|
Returns a read/write reference to the data at the first element of the vector. Reimplemented from std::vector< _Tp, _Allocator >. Definition at line 212 of file debug/vector. References __glibcxx_check_nonempty, and std::vector< _Tp, _Allocator >::front(). |
|
Inserts a range into the vector.
Note that this kind of operation could be expensive for a vector and if it is frequently used the user should consider using std::list. Definition at line 671 of file stl_vector.h. |
|
Inserts a number of copies of given data into the vector.
Note that this kind of operation could be expensive for a vector and if it is frequently used the user should consider using std::list. Definition at line 652 of file stl_vector.h. |
|
Inserts given value into vector before specified iterator.
Referenced by std::__debug::vector< _Tp, _Allocator >::insert(). |
|
Returns the size() of the largest possible vector. Definition at line 401 of file stl_vector.h. |
|
Subscript access to the data contained in the vector.
Definition at line 489 of file stl_vector.h. |
|
Subscript access to the data contained in the vector.
Definition at line 474 of file stl_vector.h. |
|
Removes last element. This is a typical stack operation. It shrinks the vector by one. Note that no data is returned, and if the last element's data is needed, it should be retrieved before pop_back() is called. Reimplemented from std::vector< _Tp, _Allocator >. Definition at line 255 of file debug/vector. References __glibcxx_check_nonempty, __gnu_debug::_Safe_iterator< _Iterator, _Sequence >::_M_invalidate(), std::__debug::vector< _Tp, _Allocator >::end(), and std::vector< _Tp, _Allocator >::pop_back(). |
|
Add data to the end of the vector.
Definition at line 597 of file stl_vector.h. Referenced by std::__debug::vector< _Tp, _Allocator >::push_back(). |
|
Returns a read-only (constant) reverse iterator that points to the last element in the vector. Iteration is done in reverse element order. Reimplemented from std::vector< _Tp, _Allocator >. Definition at line 154 of file debug/vector. References std::__debug::vector< _Tp, _Allocator >::end(). |
|
Returns a read/write reverse iterator that points to the last element in the vector. Iteration is done in reverse element order. Reimplemented from std::vector< _Tp, _Allocator >. Definition at line 150 of file debug/vector. References std::__debug::vector< _Tp, _Allocator >::end(). |
|
Returns a read-only (constant) reverse iterator that points to one before the first element in the vector. Iteration is done in reverse element order. Reimplemented from std::vector< _Tp, _Allocator >. Definition at line 162 of file debug/vector. References std::__debug::vector< _Tp, _Allocator >::begin(). |
|
Returns a read/write reverse iterator that points to one before the first element in the vector. Iteration is done in reverse element order. Reimplemented from std::vector< _Tp, _Allocator >. Definition at line 158 of file debug/vector. References std::__debug::vector< _Tp, _Allocator >::begin(). |
|
Attempt to preallocate enough memory for specified number of elements.
The advantage of this function is that if optimal code is a necessity and the user can determine the number of elements that will be required, the user can reserve the memory in advance, and thus prevent a possible reallocation of memory and copying of vector data. Referenced by std::__debug::vector< _Tp, _Allocator >::reserve(). |
|
Resizes the vector to the specified number of elements.
Definition at line 416 of file stl_vector.h. Referenced by std::__debug::vector< _Tp, _Allocator >::resize(). |
|
Returns the number of elements in the vector. Definition at line 396 of file stl_vector.h. Referenced by std::__debug::vector< _Tp, _Allocator >::resize(). |
|
Swaps data with another vector.
Definition at line 728 of file stl_vector.h. References std::_Vector_base< _Tp, _Alloc >::_M_get_Tp_allocator(), std::_Vector_base< _Tp, _Alloc >::_M_impl, std::__alloc_swap< _Alloc, >::_S_do_it(), and std::swap(). |
|
The list of constant iterators that reference this container.
Definition at line 171 of file safe_base.h. Referenced by __gnu_debug::_Safe_iterator< _Iterator, _Sequence >::_M_invalidate_single(), and __gnu_debug::_Safe_sequence< _Sequence >::_M_transfer_iter(). |
|
The list of mutable iterators that reference this container.
Definition at line 168 of file safe_base.h. Referenced by __gnu_debug::_Safe_sequence< _Sequence >::_M_invalidate_if(), __gnu_debug::_Safe_iterator< _Iterator, _Sequence >::_M_invalidate_single(), and __gnu_debug::_Safe_sequence< _Sequence >::_M_transfer_iter(). |
|
The container version number. This number may never be 0.
Definition at line 174 of file safe_base.h. Referenced by __gnu_debug::_Safe_sequence_base::_M_invalidate_all(). |