Inheritance diagram for __gnu_debug_def::list< _Tp, _Allocator >:
Public Types | |
typedef _Allocator::reference | reference |
typedef _Allocator::const_reference | const_reference |
typedef __gnu_debug::_Safe_iterator< typename _Base::iterator, list > | iterator |
typedef __gnu_debug::_Safe_iterator< typename _Base::const_iterator, list > | const_iterator |
typedef _Base::size_type | size_type |
typedef _Base::difference_type | difference_type |
typedef _Tp | value_type |
typedef _Allocator | allocator_type |
typedef _Allocator::pointer | pointer |
typedef _Allocator::const_pointer | const_pointer |
typedef std::reverse_iterator< iterator > | reverse_iterator |
typedef std::reverse_iterator< const_iterator > | const_reverse_iterator |
Public Member Functions | |
list (const _Allocator &__a=_Allocator()) | |
list (size_type __n, const _Tp &__value=_Tp(), const _Allocator &__a=_Allocator()) | |
template<class _InputIterator> | list (_InputIterator __first, _InputIterator __last, const _Allocator &__a=_Allocator()) |
list (const list &__x) | |
List copy constructor. | |
list (const _Base &__x) | |
~list () | |
list & | operator= (const list &__x) |
List assignment operator. | |
template<class _InputIterator> void | assign (_InputIterator __first, _InputIterator __last) |
Assigns a range to a list. | |
void | assign (size_type __n, const _Tp &__t) |
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 |
void | resize (size_type __sz, _Tp __c=_Tp()) |
reference | front () |
const_reference | front () const |
reference | back () |
const_reference | back () const |
void | pop_front () |
Removes first element. | |
void | pop_back () |
Removes last element. | |
iterator | insert (iterator __position, const _Tp &__x) |
void | insert (iterator __position, size_type __n, const _Tp &__x) |
template<class _InputIterator> void | insert (iterator __position, _InputIterator __first, _InputIterator __last) |
Inserts a range into the list. | |
iterator | erase (iterator __position) |
Remove element at given position. | |
iterator | erase (iterator __position, iterator __last) |
Remove a range of elements. | |
void | swap (list &__x) |
Swaps data with another list. | |
void | clear () |
void | splice (iterator __position, list &__x) |
Insert contents of another list. | |
void | splice (iterator __position, list &__x, iterator __i) |
Insert element from another list. | |
void | splice (iterator __position, list &__x, iterator __first, iterator __last) |
Insert range from another list. | |
void | remove (const _Tp &__value) |
Remove all elements equal to value. | |
template<class _Predicate> void | remove_if (_Predicate __pred) |
Remove all elements satisfying a predicate. | |
void | unique () |
Remove consecutive duplicate elements. | |
template<class _BinaryPredicate> void | unique (_BinaryPredicate __binary_pred) |
Remove consecutive elements satisfying a predicate. | |
void | merge (list &__x) |
Merge sorted lists. | |
template<class _Compare> void | merge (list &__x, _Compare __comp) |
void | sort () |
Sort the elements. | |
template<typename _StrictWeakOrdering> void | sort (_StrictWeakOrdering __pred) |
Sort the elements according to comparison function. | |
_Base & | _M_base () |
const _Base & | _M_base () const |
Private Types | |
typedef _GLIBCXX_STD::list< _Tp, _Allocator > | _Base |
typedef __gnu_debug::_Safe_sequence< list > | _Safe_base |
Private Member Functions | |
void | _M_invalidate_all () |
|
Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >. Definition at line 46 of file debug/list. |
|
Definition at line 47 of file debug/list. |
|
Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >. Definition at line 62 of file debug/list. |
|
Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >. Definition at line 56 of file debug/list. Referenced by __gnu_debug_def::list< _Tp, _Allocator >::begin(), and __gnu_debug_def::list< _Tp, _Allocator >::end(). |
|
Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >. Definition at line 64 of file debug/list. |
|
Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >. Definition at line 51 of file debug/list. |
|
Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >. Definition at line 66 of file debug/list. Referenced by __gnu_debug_def::list< _Tp, _Allocator >::rbegin(), and __gnu_debug_def::list< _Tp, _Allocator >::rend(). |
|
Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >. Definition at line 59 of file debug/list. |
|
Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >. Definition at line 54 of file debug/list. Referenced by __gnu_debug_def::list< _Tp, _Allocator >::begin(), __gnu_debug_def::list< _Tp, _Allocator >::end(), __gnu_debug_def::list< _Tp, _Allocator >::erase(), and __gnu_debug_def::list< _Tp, _Allocator >::insert(). |
|
Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >. Definition at line 63 of file debug/list. |
|
Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >. Definition at line 50 of file debug/list. |
|
Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >. Definition at line 65 of file debug/list. Referenced by __gnu_debug_def::list< _Tp, _Allocator >::rbegin(), and __gnu_debug_def::list< _Tp, _Allocator >::rend(). |
|
Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >. Definition at line 58 of file debug/list. |
|
Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >. Definition at line 61 of file debug/list. |
|
Definition at line 69 of file debug/list. |
|
Definition at line 72 of file debug/list. |
|
Definition at line 77 of file debug/list. |
|
List copy constructor.
Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >. Definition at line 83 of file debug/list. |
|
Definition at line 85 of file debug/list. |
|
Definition at line 87 of file debug/list. |
|
Definition at line 457 of file debug/list. |
|
|
|
Definition at line 107 of file debug/list. References __gnu_debug_def::list< _Tp, _Allocator >::_M_invalidate_all(). |
|
Assigns a range to a list.
Note that the assignment completely changes the list and that the resulting list's size is the same as the number of elements assigned. Old data may be lost. Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >. Definition at line 99 of file debug/list. References __glibcxx_check_valid_range, and __gnu_debug_def::list< _Tp, _Allocator >::_M_invalidate_all(). |
|
Returns a read-only (constant) reference to the data at the last element of the list. Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >. Definition at line 204 of file debug/list. References __glibcxx_check_nonempty. |
|
Returns a read/write reference to the data at the last element of the list. Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >. Definition at line 197 of file debug/list. References __glibcxx_check_nonempty. |
|
Returns a read-only (constant) iterator that points to the first element in the list. Iteration is done in ordinary element order. Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >. Definition at line 121 of file debug/list. References __gnu_debug_def::list< _Tp, _Allocator >::const_iterator. |
|
Returns a read/write iterator that points to the first element in the list. Iteration is done in ordinary element order. Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >. Definition at line 117 of file debug/list. References __gnu_debug_def::list< _Tp, _Allocator >::iterator. Referenced by __gnu_debug_def::list< _Tp, _Allocator >::merge(), __gnu_debug_def::list< _Tp, _Allocator >::pop_front(), __gnu_debug_def::list< _Tp, _Allocator >::remove(), __gnu_debug_def::list< _Tp, _Allocator >::remove_if(), __gnu_debug_def::list< _Tp, _Allocator >::rend(), __gnu_debug_def::list< _Tp, _Allocator >::resize(), __gnu_debug_def::list< _Tp, _Allocator >::splice(), and __gnu_debug_def::list< _Tp, _Allocator >::unique(). |
|
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 _GLIBCXX_STD::list< _Tp, _Allocator >. Definition at line 288 of file debug/list. References __gnu_debug_def::list< _Tp, _Allocator >::_M_invalidate_all(). |
|
Returns a read-only (constant) iterator that points one past the last element in the list. Iteration is done in ordinary element order. Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >. Definition at line 129 of file debug/list. References __gnu_debug_def::list< _Tp, _Allocator >::const_iterator. |
|
Returns a read/write iterator that points one past the last element in the list. Iteration is done in ordinary element order. Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >. Definition at line 125 of file debug/list. References __gnu_debug_def::list< _Tp, _Allocator >::iterator. Referenced by __gnu_debug_def::list< _Tp, _Allocator >::_M_invalidate_all(), __gnu_debug_def::list< _Tp, _Allocator >::merge(), __gnu_debug_def::list< _Tp, _Allocator >::pop_back(), __gnu_debug_def::list< _Tp, _Allocator >::rbegin(), __gnu_debug_def::list< _Tp, _Allocator >::resize(), __gnu_debug_def::list< _Tp, _Allocator >::splice(), and __gnu_debug_def::list< _Tp, _Allocator >::unique(). |
|
Remove a range of elements.
Due to the nature of a list this operation can be done in constant time, and only invalidates iterators/references to the element being removed. 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. Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >. Definition at line 266 of file debug/list. References __glibcxx_check_erase_range, and __gnu_debug_def::list< _Tp, _Allocator >::iterator. |
|
Remove element at given position.
Due to the nature of a list this operation can be done in constant time, and only invalidates iterators/references to the element being removed. 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. Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >. Definition at line 258 of file debug/list. References __glibcxx_check_erase, and __gnu_debug_def::list< _Tp, _Allocator >::iterator. Referenced by __gnu_debug_def::list< _Tp, _Allocator >::remove(), __gnu_debug_def::list< _Tp, _Allocator >::remove_if(), and __gnu_debug_def::list< _Tp, _Allocator >::unique(). |
|
Returns a read-only (constant) reference to the data at the first element of the list. Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >. Definition at line 190 of file debug/list. References __glibcxx_check_nonempty. |
|
Returns a read/write reference to the data at the first element of the list. Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >. Definition at line 183 of file debug/list. References __glibcxx_check_nonempty. |
|
Inserts a range into the list.
Due to the nature of a list this operation can be done in constant time, and does not invalidate iterators and references. Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >. Definition at line 250 of file debug/list. References __glibcxx_check_insert_range. |
|
Definition at line 242 of file debug/list. References __glibcxx_check_insert. |
|
Definition at line 235 of file debug/list. References __glibcxx_check_insert, and __gnu_debug_def::list< _Tp, _Allocator >::iterator. |
|
Definition at line 431 of file debug/list. References __glibcxx_check_sorted_pred, __gnu_debug_def::list< _Tp, _Allocator >::_M_base(), __gnu_debug_def::list< _Tp, _Allocator >::begin(), and __gnu_debug_def::list< _Tp, _Allocator >::end(). |
|
Merge sorted lists.
Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >. Definition at line 417 of file debug/list. References __glibcxx_check_sorted, __gnu_debug_def::list< _Tp, _Allocator >::_M_base(), __gnu_debug_def::list< _Tp, _Allocator >::begin(), and __gnu_debug_def::list< _Tp, _Allocator >::end(). |
|
List assignment operator.
Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >. Definition at line 90 of file debug/list. References __gnu_debug_def::list< _Tp, _Allocator >::_M_invalidate_all(). |
|
Removes last element. This is a typical stack operation. It shrinks the list by one. Due to the nature of a list this operation can be done in constant time, and only invalidates iterators/references to the element being removed. 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 _GLIBCXX_STD::list< _Tp, _Allocator >. Definition at line 225 of file debug/list. References __glibcxx_check_nonempty, and __gnu_debug_def::list< _Tp, _Allocator >::end(). |
|
Removes first element. This is a typical stack operation. It shrinks the list by one. Due to the nature of a list this operation can be done in constant time, and only invalidates iterators/references to the element being removed. Note that no data is returned, and if the first element's data is needed, it should be retrieved before pop_front() is called. Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >. Definition at line 214 of file debug/list. References __glibcxx_check_nonempty, and __gnu_debug_def::list< _Tp, _Allocator >::begin(). |
|
Returns a read-only (constant) reverse iterator that points to the last element in the list. Iteration is done in reverse element order. Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >. Definition at line 137 of file debug/list. References __gnu_debug_def::list< _Tp, _Allocator >::const_reverse_iterator, and __gnu_debug_def::list< _Tp, _Allocator >::end(). |
|
Returns a read/write reverse iterator that points to the last element in the list. Iteration is done in reverse element order. Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >. Definition at line 133 of file debug/list. References __gnu_debug_def::list< _Tp, _Allocator >::end(), and __gnu_debug_def::list< _Tp, _Allocator >::reverse_iterator. |
|
Remove all elements equal to value.
Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >. Definition at line 355 of file debug/list. References __gnu_debug_def::list< _Tp, _Allocator >::begin(), and __gnu_debug_def::list< _Tp, _Allocator >::erase(). |
|
Remove all elements satisfying a predicate.
Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >. Definition at line 368 of file debug/list. References __gnu_debug_def::list< _Tp, _Allocator >::begin(), and __gnu_debug_def::list< _Tp, _Allocator >::erase(). |
|
Returns a read-only (constant) reverse iterator that points to one before the first element in the list. Iteration is done in reverse element order. Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >. Definition at line 145 of file debug/list. References __gnu_debug_def::list< _Tp, _Allocator >::begin(), and __gnu_debug_def::list< _Tp, _Allocator >::const_reverse_iterator. |
|
Returns a read/write reverse iterator that points to one before the first element in the list. Iteration is done in reverse element order. Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >. Definition at line 141 of file debug/list. References __gnu_debug_def::list< _Tp, _Allocator >::begin(), and __gnu_debug_def::list< _Tp, _Allocator >::reverse_iterator. |
|
|
Sort the elements according to comparison function. Sorts the elements of this list in NlogN time. Equivalent elements remain in list order. Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >. Definition at line 449 of file debug/list. |
|
Sort the elements. Sorts the elements of this list in NlogN time. Equivalent elements remain in list order. Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >. Definition at line 445 of file debug/list. |
|
Insert range from another list.
Undefined if position is in [first,last). Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >. Definition at line 325 of file debug/list. References __glibcxx_check_insert, __glibcxx_check_valid_range, _GLIBCXX_DEBUG_VERIFY, __gnu_debug_def::list< _Tp, _Allocator >::_M_base(), __gnu_debug::_Safe_sequence< list< _Tp, _Allocator > >::_M_transfer_iter(), and _GLIBCXX_STD::list< _Tp, _Allocator >::get_allocator(). |
|
Insert element from another list.
Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >. Definition at line 305 of file debug/list. References __glibcxx_check_insert, _GLIBCXX_DEBUG_VERIFY, __gnu_debug_def::list< _Tp, _Allocator >::_M_base(), __gnu_debug::_Safe_sequence< list< _Tp, _Allocator > >::_M_transfer_iter(), and _GLIBCXX_STD::list< _Tp, _Allocator >::get_allocator(). |
|
Insert contents of another list.
Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >. Definition at line 296 of file debug/list. References _GLIBCXX_DEBUG_VERIFY, __gnu_debug_def::list< _Tp, _Allocator >::begin(), and __gnu_debug_def::list< _Tp, _Allocator >::end(). |
|
Swaps data with another list.
Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >. Definition at line 281 of file debug/list. References __gnu_debug::_Safe_sequence_base::_M_swap(). Referenced by __gnu_debug_def::swap(). |
|
Remove consecutive elements satisfying a predicate.
Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >. Definition at line 399 of file debug/list. References __gnu_debug_def::list< _Tp, _Allocator >::begin(), __gnu_debug_def::list< _Tp, _Allocator >::end(), and __gnu_debug_def::list< _Tp, _Allocator >::erase(). |
|
Remove consecutive duplicate elements. For each consecutive set of elements with the same value, remove all but the first one. Remaining elements stay in list order. 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 _GLIBCXX_STD::list< _Tp, _Allocator >. Definition at line 380 of file debug/list. References __gnu_debug_def::list< _Tp, _Allocator >::begin(), __gnu_debug_def::list< _Tp, _Allocator >::end(), and __gnu_debug_def::list< _Tp, _Allocator >::erase(). |