__gnu_debug_def::list< _Tp, _Allocator > Class Template Reference

Inheritance diagram for __gnu_debug_def::list< _Tp, _Allocator >:

_GLIBCXX_STD::list< _Tp, _Allocator > __gnu_debug::_Safe_sequence< _Sequence > _GLIBCXX_STD::_List_base< _Tp, _Allocator > __gnu_debug::_Safe_sequence_base List of all members.

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 ()
listoperator= (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 ()

Detailed Description

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
class __gnu_debug_def::list< _Tp, _Allocator >

Definition at line 42 of file debug/list.


Member Typedef Documentation

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
typedef _GLIBCXX_STD::list<_Tp, _Allocator> __gnu_debug_def::list< _Tp, _Allocator >::_Base [private]

Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >.

Definition at line 46 of file debug/list.

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
typedef __gnu_debug::_Safe_sequence<list> __gnu_debug_def::list< _Tp, _Allocator >::_Safe_base [private]

Definition at line 47 of file debug/list.

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
typedef _Allocator __gnu_debug_def::list< _Tp, _Allocator >::allocator_type

Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >.

Definition at line 62 of file debug/list.

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
typedef __gnu_debug::_Safe_iterator<typename _Base::const_iterator, list> __gnu_debug_def::list< _Tp, _Allocator >::const_iterator

Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >.

Definition at line 56 of file debug/list.

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
typedef _Base::const_pointer __gnu_debug_def::list< _Tp, _Allocator >::const_pointer

Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >.

Definition at line 64 of file debug/list.

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
typedef _Base::const_reference __gnu_debug_def::list< _Tp, _Allocator >::const_reference

Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >.

Definition at line 51 of file debug/list.

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
typedef std::reverse_iterator<const_iterator> __gnu_debug_def::list< _Tp, _Allocator >::const_reverse_iterator

Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >.

Definition at line 66 of file debug/list.

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
typedef _Base::difference_type __gnu_debug_def::list< _Tp, _Allocator >::difference_type

Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >.

Definition at line 59 of file debug/list.

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
typedef __gnu_debug::_Safe_iterator<typename _Base::iterator, list> __gnu_debug_def::list< _Tp, _Allocator >::iterator

Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >.

Definition at line 54 of file debug/list.

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
typedef _Base::pointer __gnu_debug_def::list< _Tp, _Allocator >::pointer

Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >.

Definition at line 63 of file debug/list.

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
typedef _Base::reference __gnu_debug_def::list< _Tp, _Allocator >::reference

Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >.

Definition at line 50 of file debug/list.

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
typedef std::reverse_iterator<iterator> __gnu_debug_def::list< _Tp, _Allocator >::reverse_iterator

Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >.

Definition at line 65 of file debug/list.

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
typedef _Base::size_type __gnu_debug_def::list< _Tp, _Allocator >::size_type

Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >.

Definition at line 58 of file debug/list.

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
typedef _Tp __gnu_debug_def::list< _Tp, _Allocator >::value_type

Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >.

Definition at line 61 of file debug/list.


Constructor & Destructor Documentation

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
__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.

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
__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.

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
template<class _InputIterator>
__gnu_debug_def::list< _Tp, _Allocator >::list ( _InputIterator  __first,
_InputIterator  __last,
const _Allocator &  __a = _Allocator() 
) [inline]

Builds a list from a range.

Parameters:
first An input iterator.
last An input iterator.
Create a list consisting of copies of the elements from [first,last). This is linear in N (where N is distance(first,last)).

Reimplemented from _GLIBCXX_STD::list< _Tp, _Allocator >.

Definition at line 77 of file debug/list.

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
__gnu_debug_def::list< _Tp, _Allocator >::list ( const list< _Tp, _Allocator > &  __x  )  [inline]

Definition at line 83 of file debug/list.

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
__gnu_debug_def::list< _Tp, _Allocator >::list ( const _Base __x  )  [inline]

Definition at line 85 of file debug/list.

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
__gnu_debug_def::list< _Tp, _Allocator >::~list (  )  [inline]

Definition at line 87 of file debug/list.


Member Function Documentation

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
const _Base& __gnu_debug_def::list< _Tp, _Allocator >::_M_base (  )  const [inline]

Definition at line 457 of file debug/list.

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
_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().

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
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=().

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
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().

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
template<class _InputIterator>
void __gnu_debug_def::list< _Tp, _Allocator >::assign ( _InputIterator  __first,
_InputIterator  __last 
) [inline]

Assigns a range to a list.

Parameters:
first An input iterator.
last An input iterator.
This function fills a list with copies of the elements in the range [first,last).

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().

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
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().

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
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().

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
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().

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
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().

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
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().

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
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().

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
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().

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
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().

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
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().

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
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().

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
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().

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
template<class _InputIterator>
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().

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
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().

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
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().

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
template<class _Compare>
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().

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
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().

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
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().

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
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().

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
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().

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
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().

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
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().

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
void __gnu_debug_def::list< _Tp, _Allocator >::remove ( const _Tp &  __value  )  [inline]

Remove all elements equal to value.

Parameters:
value The value to remove.
Removes every element in the list equal to value. 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 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().

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
template<class _Predicate>
void __gnu_debug_def::list< _Tp, _Allocator >::remove_if ( _Predicate  __pred  )  [inline]

Remove all elements satisfying a predicate.

Parameters:
Predicate Unary predicate function or object.
Removes every element in the list for which the predicate returns true. 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 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().

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
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().

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
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().

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
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().

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
template<typename _StrictWeakOrdering>
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().

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
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().

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
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().

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
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().

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
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().

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
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().

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
template<class _BinaryPredicate>
void __gnu_debug_def::list< _Tp, _Allocator >::unique ( _BinaryPredicate  __binary_pred  )  [inline]

Remove consecutive elements satisfying a predicate.

Parameters:
BinaryPredicate Binary predicate function or object.
For each consecutive set of elements [first,last) that satisfy predicate(first,i) where i is an iterator in [first,last), 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 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().

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
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().


The documentation for this class was generated from the following file:
Generated on Tue Feb 2 16:58:18 2010 for GNU C++ STL by  doxygen 1.4.7