__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< list< _Tp, _Allocator > > _GLIBCXX_STD::_List_base< _Tp, _Allocator > __gnu_debug::_Safe_sequence_base List of all members.

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

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


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.

Referenced by __gnu_debug_def::list< _Tp, _Allocator >::begin(), and __gnu_debug_def::list< _Tp, _Allocator >::end().

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

Referenced by __gnu_debug_def::list< _Tp, _Allocator >::rbegin(), and __gnu_debug_def::list< _Tp, _Allocator >::rend().

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.

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

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

Referenced by __gnu_debug_def::list< _Tp, _Allocator >::rbegin(), and __gnu_debug_def::list< _Tp, _Allocator >::rend().

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]
 

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]
 

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]
 

List copy constructor.

Parameters:
x A list of identical element and allocator types.
The newly-created list uses a copy of the allocation object used by x.

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

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< list< _Tp, _Allocator > >::_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().

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, and __gnu_debug_def::list< _Tp, _Allocator >::_M_invalidate_all().

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.

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.

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 __gnu_debug_def::list< _Tp, _Allocator >::const_iterator.

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

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

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 __gnu_debug_def::list< _Tp, _Allocator >::const_iterator.

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

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
iterator __gnu_debug_def::list< _Tp, _Allocator >::erase iterator  __position,
iterator  __last
[inline]
 

Remove a range of elements.

Parameters:
first Iterator pointing to the first element to be erased.
last Iterator pointing to one past the last element to be erased.
Returns:
An iterator pointing to the element pointed to by last prior to erasing (or end()).
This function will erase the elements in the range [first,last) and shorten the list accordingly.

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.

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
iterator __gnu_debug_def::list< _Tp, _Allocator >::erase iterator  __position  )  [inline]
 

Remove element at given position.

Parameters:
position Iterator pointing to element to be erased.
Returns:
An iterator pointing to the next element (or end()).
This function will erase the element at the given position and thus shorten 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. 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().

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.

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.

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]
 

Inserts a range into the list.

Parameters:
position An iterator into the list.
first An input iterator.
last An input iterator.
This function will insert copies of the data in the range [first,last) into the list before the location specified by position.

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.

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.

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, and __gnu_debug_def::list< _Tp, _Allocator >::iterator.

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_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 >::merge list< _Tp, _Allocator > &  __x  )  [inline]
 

Merge sorted lists.

Parameters:
x Sorted list to merge.
Assumes that both x and this list are sorted according to operator<(). Merges elements of x into this list in sorted order, leaving x empty when complete. Elements in this list precede elements in x that are equal.

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

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

List assignment operator.

Parameters:
x A list of identical element and allocator types.
All the elements of x are copied, but unlike the copy constructor, the allocator object is not copied.

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

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, and __gnu_debug_def::list< _Tp, _Allocator >::end().

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, and __gnu_debug_def::list< _Tp, _Allocator >::begin().

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 >::const_reverse_iterator, and __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(), and __gnu_debug_def::list< _Tp, _Allocator >::reverse_iterator.

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_def::list< _Tp, _Allocator >::begin(), 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_def::list< _Tp, _Allocator >::begin(), 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(), and __gnu_debug_def::list< _Tp, _Allocator >::const_reverse_iterator.

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(), and __gnu_debug_def::list< _Tp, _Allocator >::reverse_iterator.

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_sequence_base::_M_revalidate_singular(), __gnu_debug_def::list< _Tp, _Allocator >::begin(), and __gnu_debug_def::list< _Tp, _Allocator >::end().

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.

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.

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]
 

Insert range from another list.

Parameters:
position Iterator referencing the element to insert before.
x Source list.
first Iterator referencing the start of range in x.
last Iterator referencing the end of range in x.
Removes elements in the range [first,last) and inserts them before position in constant time.

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

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]
 

Insert element from another list.

Parameters:
position Iterator referencing the element to insert before.
x Source list.
i Iterator referencing the element to move.
Removes the element in list x referenced by i and inserts it into the current list before position.

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

template<typename _Tp, typename _Allocator = std::allocator<_Tp>>
void __gnu_debug_def::list< _Tp, _Allocator >::splice iterator  __position,
list< _Tp, _Allocator > &  __x
[inline]
 

Insert contents of another list.

Parameters:
position Iterator referencing the element to insert before.
x Source list.
The elements of x are inserted in constant time in front of the element referenced by position. x becomes an empty 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().

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

Swaps data with another list.

Parameters:
x A list of the same element and allocator types.
This exchanges the elements between two lists in constant time. Note that the global std::swap() function is specialized such that std::swap(l1,l2) will feed to this function.

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

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 Jan 30 17:32:06 2007 for GNU C++ STL by doxygen 1.3.6