Inheritance diagram for __gnu_debug_def::list< _Tp, _Allocator >:
Public Types | |
typedef _Base::reference | reference |
typedef _Base::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 _Base::pointer | pointer |
typedef _Base::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()) | |
Default constructor creates no elements. | |
list (size_type __n, const _Tp &__value=_Tp(), const _Allocator &__a=_Allocator()) | |
template<class _InputIterator> | |
list (_InputIterator __first, _InputIterator __last, const _Allocator &__a=_Allocator()) | |
Builds a list from a range. | |
list (const list &__x) | |
list (const _Base &__x) | |
~list () | |
list & | operator= (const list &__x) |
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) |
iterator | erase (iterator __position) |
iterator | erase (iterator __position, iterator __last) |
void | swap (list &__x) |
void | clear () |
void | splice (iterator __position, list &__x) |
void | splice (iterator __position, list &__x, iterator __i) |
void | splice (iterator __position, list &__x, iterator __first, iterator __last) |
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) |
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 () |
Definition at line 42 of file debug/list.
typedef _GLIBCXX_STD::list<_Tp, _Allocator> __gnu_debug_def::list< _Tp, _Allocator >::_Base [private] |
typedef __gnu_debug::_Safe_sequence<list> __gnu_debug_def::list< _Tp, _Allocator >::_Safe_base [private] |
Definition at line 47 of file debug/list.
typedef _Allocator __gnu_debug_def::list< _Tp, _Allocator >::allocator_type |
typedef __gnu_debug::_Safe_iterator<typename _Base::const_iterator, list> __gnu_debug_def::list< _Tp, _Allocator >::const_iterator |
typedef _Base::const_pointer __gnu_debug_def::list< _Tp, _Allocator >::const_pointer |
typedef _Base::const_reference __gnu_debug_def::list< _Tp, _Allocator >::const_reference |
typedef std::reverse_iterator<const_iterator> __gnu_debug_def::list< _Tp, _Allocator >::const_reverse_iterator |
typedef _Base::difference_type __gnu_debug_def::list< _Tp, _Allocator >::difference_type |
typedef __gnu_debug::_Safe_iterator<typename _Base::iterator, list> __gnu_debug_def::list< _Tp, _Allocator >::iterator |
typedef _Base::pointer __gnu_debug_def::list< _Tp, _Allocator >::pointer |
typedef _Base::reference __gnu_debug_def::list< _Tp, _Allocator >::reference |
typedef std::reverse_iterator<iterator> __gnu_debug_def::list< _Tp, _Allocator >::reverse_iterator |
typedef _Base::size_type __gnu_debug_def::list< _Tp, _Allocator >::size_type |
typedef _Tp __gnu_debug_def::list< _Tp, _Allocator >::value_type |
__gnu_debug_def::list< _Tp, _Allocator >::list | ( | const _Allocator & | __a = _Allocator() |
) | [inline, explicit] |
Default constructor creates no elements.
Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >.
Definition at line 69 of file debug/list.
__gnu_debug_def::list< _Tp, _Allocator >::list | ( | size_type | __n, | |
const _Tp & | __value = _Tp() , |
|||
const _Allocator & | __a = _Allocator() | |||
) | [inline, explicit] |
Definition at line 72 of file debug/list.
__gnu_debug_def::list< _Tp, _Allocator >::list | ( | _InputIterator | __first, | |
_InputIterator | __last, | |||
const _Allocator & | __a = _Allocator() | |||
) | [inline] |
Builds a list from a range.
first | An input iterator. | |
last | An input iterator. |
Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >.
Definition at line 77 of file debug/list.
__gnu_debug_def::list< _Tp, _Allocator >::list | ( | const list< _Tp, _Allocator > & | __x | ) | [inline] |
Definition at line 83 of file debug/list.
__gnu_debug_def::list< _Tp, _Allocator >::list | ( | const _Base & | __x | ) | [inline] |
Definition at line 85 of file debug/list.
__gnu_debug_def::list< _Tp, _Allocator >::~list | ( | ) | [inline] |
Definition at line 87 of file debug/list.
const _Base& __gnu_debug_def::list< _Tp, _Allocator >::_M_base | ( | ) | const [inline] |
Definition at line 457 of file debug/list.
_Base& __gnu_debug_def::list< _Tp, _Allocator >::_M_base | ( | ) | [inline] |
Definition at line 454 of file debug/list.
Referenced by __gnu_debug_def::list< _Tp, _Allocator >::_M_invalidate_all(), __gnu_debug_def::list< _Tp, _Allocator >::merge(), __gnu_debug_def::operator!=(), __gnu_debug_def::operator==(), __gnu_debug_def::operator>(), __gnu_debug_def::operator>=(), and __gnu_debug_def::list< _Tp, _Allocator >::splice().
void __gnu_debug_def::list< _Tp, _Allocator >::_M_invalidate_all | ( | ) | [inline, private] |
Definition at line 461 of file debug/list.
References __gnu_debug_def::list< _Tp, _Allocator >::_M_base(), __gnu_debug::_Safe_sequence< _Sequence >::_M_invalidate_if(), and __gnu_debug_def::list< _Tp, _Allocator >::end().
Referenced by __gnu_debug_def::list< _Tp, _Allocator >::assign(), __gnu_debug_def::list< _Tp, _Allocator >::clear(), and __gnu_debug_def::list< _Tp, _Allocator >::operator=().
void __gnu_debug_def::list< _Tp, _Allocator >::assign | ( | size_type | __n, | |
const _Tp & | __t | |||
) | [inline] |
Definition at line 107 of file debug/list.
References __gnu_debug_def::list< _Tp, _Allocator >::_M_invalidate_all(), and _GLIBCXX_STD::list< _Tp, _Allocator >::assign().
void __gnu_debug_def::list< _Tp, _Allocator >::assign | ( | _InputIterator | __first, | |
_InputIterator | __last | |||
) | [inline] |
Assigns a range to a list.
first | An input iterator. | |
last | An input iterator. |
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, __gnu_debug_def::list< _Tp, _Allocator >::_M_invalidate_all(), and _GLIBCXX_STD::list< _Tp, _Allocator >::assign().
const_reference __gnu_debug_def::list< _Tp, _Allocator >::back | ( | ) | const [inline] |
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, and _GLIBCXX_STD::list< _Tp, _Allocator >::back().
reference __gnu_debug_def::list< _Tp, _Allocator >::back | ( | ) | [inline] |
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, and _GLIBCXX_STD::list< _Tp, _Allocator >::back().
const_iterator __gnu_debug_def::list< _Tp, _Allocator >::begin | ( | ) | const [inline] |
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 _GLIBCXX_STD::list< _Tp, _Allocator >::begin().
iterator __gnu_debug_def::list< _Tp, _Allocator >::begin | ( | ) | [inline] |
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 _GLIBCXX_STD::list< _Tp, _Allocator >::begin().
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().
void __gnu_debug_def::list< _Tp, _Allocator >::clear | ( | ) | [inline] |
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(), and _GLIBCXX_STD::list< _Tp, _Allocator >::clear().
const_iterator __gnu_debug_def::list< _Tp, _Allocator >::end | ( | ) | const [inline] |
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 _GLIBCXX_STD::list< _Tp, _Allocator >::end().
iterator __gnu_debug_def::list< _Tp, _Allocator >::end | ( | ) | [inline] |
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 _GLIBCXX_STD::list< _Tp, _Allocator >::end().
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().
iterator __gnu_debug_def::list< _Tp, _Allocator >::erase | ( | iterator | __position, | |
iterator | __last | |||
) | [inline] |
Definition at line 266 of file debug/list.
References __glibcxx_check_erase_range, __gnu_debug::_Safe_iterator< _Iterator, _Sequence >::base(), and _GLIBCXX_STD::list< _Tp, _Allocator >::erase().
iterator __gnu_debug_def::list< _Tp, _Allocator >::erase | ( | iterator | __position | ) | [inline] |
Definition at line 258 of file debug/list.
References __glibcxx_check_erase, __gnu_debug::_Safe_iterator< _Iterator, _Sequence >::_M_invalidate(), __gnu_debug::_Safe_iterator< _Iterator, _Sequence >::base(), and _GLIBCXX_STD::list< _Tp, _Allocator >::erase().
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().
const_reference __gnu_debug_def::list< _Tp, _Allocator >::front | ( | ) | const [inline] |
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, and _GLIBCXX_STD::list< _Tp, _Allocator >::front().
reference __gnu_debug_def::list< _Tp, _Allocator >::front | ( | ) | [inline] |
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, and _GLIBCXX_STD::list< _Tp, _Allocator >::front().
void __gnu_debug_def::list< _Tp, _Allocator >::insert | ( | iterator | __position, | |
_InputIterator | __first, | |||
_InputIterator | __last | |||
) | [inline] |
Definition at line 250 of file debug/list.
References __glibcxx_check_insert_range, __gnu_debug::_Safe_iterator< _Iterator, _Sequence >::base(), and _GLIBCXX_STD::list< _Tp, _Allocator >::insert().
void __gnu_debug_def::list< _Tp, _Allocator >::insert | ( | iterator | __position, | |
size_type | __n, | |||
const _Tp & | __x | |||
) | [inline] |
Definition at line 242 of file debug/list.
References __glibcxx_check_insert, __gnu_debug::_Safe_iterator< _Iterator, _Sequence >::base(), and _GLIBCXX_STD::list< _Tp, _Allocator >::insert().
iterator __gnu_debug_def::list< _Tp, _Allocator >::insert | ( | iterator | __position, | |
const _Tp & | __x | |||
) | [inline] |
Definition at line 235 of file debug/list.
References __glibcxx_check_insert, __gnu_debug::_Safe_iterator< _Iterator, _Sequence >::base(), and _GLIBCXX_STD::list< _Tp, _Allocator >::insert().
void __gnu_debug_def::list< _Tp, _Allocator >::merge | ( | list< _Tp, _Allocator > & | __x, | |
_Compare | __comp | |||
) | [inline] |
Definition at line 431 of file debug/list.
References __glibcxx_check_sorted_pred, __gnu_debug_def::list< _Tp, _Allocator >::_M_base(), __gnu_debug::_Safe_iterator< _Iterator, _Sequence >::base(), __gnu_debug_def::list< _Tp, _Allocator >::begin(), _GLIBCXX_STD::list< _Tp, _Allocator >::begin(), __gnu_debug_def::list< _Tp, _Allocator >::end(), _GLIBCXX_STD::list< _Tp, _Allocator >::end(), and std::merge().
void __gnu_debug_def::list< _Tp, _Allocator >::merge | ( | list< _Tp, _Allocator > & | __x | ) | [inline] |
Definition at line 417 of file debug/list.
References __glibcxx_check_sorted, __gnu_debug_def::list< _Tp, _Allocator >::_M_base(), __gnu_debug::_Safe_iterator< _Iterator, _Sequence >::base(), __gnu_debug_def::list< _Tp, _Allocator >::begin(), _GLIBCXX_STD::list< _Tp, _Allocator >::begin(), __gnu_debug_def::list< _Tp, _Allocator >::end(), _GLIBCXX_STD::list< _Tp, _Allocator >::end(), and std::merge().
list& __gnu_debug_def::list< _Tp, _Allocator >::operator= | ( | const list< _Tp, _Allocator > & | __x | ) | [inline] |
Definition at line 90 of file debug/list.
References __gnu_debug_def::list< _Tp, _Allocator >::_M_invalidate_all().
void __gnu_debug_def::list< _Tp, _Allocator >::pop_back | ( | ) | [inline] |
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, __gnu_debug::_Safe_iterator< _Iterator, _Sequence >::_M_invalidate(), __gnu_debug_def::list< _Tp, _Allocator >::end(), and _GLIBCXX_STD::list< _Tp, _Allocator >::pop_back().
void __gnu_debug_def::list< _Tp, _Allocator >::pop_front | ( | ) | [inline] |
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, __gnu_debug::_Safe_iterator< _Iterator, _Sequence >::_M_invalidate(), __gnu_debug_def::list< _Tp, _Allocator >::begin(), and _GLIBCXX_STD::list< _Tp, _Allocator >::pop_front().
const_reverse_iterator __gnu_debug_def::list< _Tp, _Allocator >::rbegin | ( | ) | const [inline] |
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 >::end().
reverse_iterator __gnu_debug_def::list< _Tp, _Allocator >::rbegin | ( | ) | [inline] |
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().
void __gnu_debug_def::list< _Tp, _Allocator >::remove | ( | const _Tp & | __value | ) | [inline] |
Remove all elements equal to value.
value | The value to remove. |
Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >.
Definition at line 355 of file debug/list.
References __gnu_debug::_Safe_iterator< _Iterator, _Sequence >::base(), __gnu_debug_def::list< _Tp, _Allocator >::begin(), _GLIBCXX_STD::list< _Tp, _Allocator >::end(), and __gnu_debug_def::list< _Tp, _Allocator >::erase().
void __gnu_debug_def::list< _Tp, _Allocator >::remove_if | ( | _Predicate | __pred | ) | [inline] |
Remove all elements satisfying a predicate.
Predicate | Unary predicate function or object. |
Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >.
Definition at line 368 of file debug/list.
References __gnu_debug::_Safe_iterator< _Iterator, _Sequence >::base(), __gnu_debug_def::list< _Tp, _Allocator >::begin(), _GLIBCXX_STD::list< _Tp, _Allocator >::end(), and __gnu_debug_def::list< _Tp, _Allocator >::erase().
const_reverse_iterator __gnu_debug_def::list< _Tp, _Allocator >::rend | ( | ) | const [inline] |
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().
reverse_iterator __gnu_debug_def::list< _Tp, _Allocator >::rend | ( | ) | [inline] |
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().
void __gnu_debug_def::list< _Tp, _Allocator >::resize | ( | size_type | __sz, | |
_Tp | __c = _Tp() | |||
) | [inline] |
Definition at line 154 of file debug/list.
References __throw_exception_again, __gnu_debug::_Safe_sequence_base::_M_detach_singular(), __gnu_debug::_Safe_iterator< _Iterator, _Sequence >::_M_invalidate(), __gnu_debug::_Safe_sequence_base::_M_revalidate_singular(), __gnu_debug_def::list< _Tp, _Allocator >::begin(), __gnu_debug_def::list< _Tp, _Allocator >::end(), and _GLIBCXX_STD::list< _Tp, _Allocator >::resize().
void __gnu_debug_def::list< _Tp, _Allocator >::sort | ( | _StrictWeakOrdering | __pred | ) | [inline] |
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.
References std::sort().
void __gnu_debug_def::list< _Tp, _Allocator >::sort | ( | ) | [inline] |
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.
References std::sort().
void __gnu_debug_def::list< _Tp, _Allocator >::splice | ( | iterator | __position, | |
list< _Tp, _Allocator > & | __x, | |||
iterator | __first, | |||
iterator | __last | |||
) | [inline] |
Definition at line 325 of file debug/list.
References __glibcxx_check_insert, __glibcxx_check_valid_range, __gnu_debug::__msg_splice_alloc, __gnu_debug::__msg_splice_other, __gnu_debug::__msg_splice_overlap, _GLIBCXX_DEBUG_VERIFY, __gnu_debug::_Safe_iterator_base::_M_attached_to(), __gnu_debug_def::list< _Tp, _Allocator >::_M_base(), __gnu_debug::_Safe_sequence< _Sequence >::_M_transfer_iter(), __gnu_debug::_Safe_iterator< _Iterator, _Sequence >::base(), _GLIBCXX_STD::list< _Tp, _Allocator >::get_allocator(), _GLIBCXX_STD::list< _Tp, _Alloc >::get_allocator(), and _GLIBCXX_STD::list< _Tp, _Allocator >::splice().
void __gnu_debug_def::list< _Tp, _Allocator >::splice | ( | iterator | __position, | |
list< _Tp, _Allocator > & | __x, | |||
iterator | __i | |||
) | [inline] |
Definition at line 305 of file debug/list.
References __glibcxx_check_insert, __gnu_debug::__msg_splice_alloc, __gnu_debug::__msg_splice_bad, __gnu_debug::__msg_splice_other, _GLIBCXX_DEBUG_VERIFY, __gnu_debug::_Safe_iterator_base::_M_attached_to(), __gnu_debug_def::list< _Tp, _Allocator >::_M_base(), __gnu_debug::_Safe_iterator< _Iterator, _Sequence >::_M_dereferenceable(), __gnu_debug::_Safe_sequence< _Sequence >::_M_transfer_iter(), __gnu_debug::_Safe_iterator< _Iterator, _Sequence >::base(), _GLIBCXX_STD::list< _Tp, _Allocator >::get_allocator(), _GLIBCXX_STD::list< _Tp, _Alloc >::get_allocator(), and _GLIBCXX_STD::list< _Tp, _Allocator >::splice().
void __gnu_debug_def::list< _Tp, _Allocator >::splice | ( | iterator | __position, | |
list< _Tp, _Allocator > & | __x | |||
) | [inline] |
Definition at line 296 of file debug/list.
References __gnu_debug::__msg_self_splice, _GLIBCXX_DEBUG_VERIFY, __gnu_debug_def::list< _Tp, _Allocator >::begin(), and __gnu_debug_def::list< _Tp, _Allocator >::end().
void __gnu_debug_def::list< _Tp, _Allocator >::swap | ( | list< _Tp, _Allocator > & | __x | ) | [inline] |
Definition at line 281 of file debug/list.
References __gnu_debug::_Safe_sequence_base::_M_swap(), and std::swap().
Referenced by __gnu_debug_def::swap().
void __gnu_debug_def::list< _Tp, _Allocator >::unique | ( | _BinaryPredicate | __binary_pred | ) | [inline] |
Remove consecutive elements satisfying a predicate.
BinaryPredicate | Binary predicate function or object. |
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().
void __gnu_debug_def::list< _Tp, _Allocator >::unique | ( | ) | [inline] |
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().