std::List_iterator(3)

std::List_iterator3

A list::iterator.

Usage

#include <list>

Inherits std::List_iterator_base.

Public Types

typedef List_iterator< Type, Type &, Type * > iterator
typedef List_iterator< Type, const Type &, const Type * > const_iterator
typedef List_iterator< Type, Ref, Ptr > Self
typedef Type value_type
typedef Ptr pointer
typedef Ref reference
typedef List_node< Type > Node
typedef size_t size_type
typedef ptrdiff_t difference_type
typedef bidirectional_iterator_tag iterator_category

Public Member Functions

List_iterator (Node *x)
List_iterator ()
List_iterator (const iterator &x)
reference operator * () const
pointer operator-> () const
Self & operator++ ()
Self operator++ (int)
Self & operator-- ()
Self operator-- (int)
void M_incr ()
Walk the list forward. void M_decr ()
Walk the list backward. bool operator== (const List_iterator_base &x) const
bool operator!= (const List_iterator_base &x) const

Public Attributes

List_node_base * M_node
The only member points to the list element.

Detailed Description

template<typename Type, typename Ref, typename Ptr> struct std::List_iterator< Type, Ref, Ptr >

A list::iterator.

In addition to being used externally, a list holds one of these internally, pointing to the sequence of data.

Definition at line 144 of file list.

Member Function Documentation

void std::List_iterator_base::M_incr () [inline, inherited]

Walk the list forward.

Definition at line 116 of file list.

void std::List_iterator_base::M_decr () [inline, inherited]

Walk the list backward.

Definition at line 121 of file list.

Member Data Documentation

List_node_base* std::List_iterator_base::M_node [inherited]

The only member points to the list element.

Definition at line 104 of file list.

Releases

2 releases since Debian 3.1 (Sarge); the text changed 1 time.

  1. 3.1
  2. 4.0

Author

Generated automatically by Doxygen for libstdc++-v3 Source from the source code.

From libstdc++5-3.3-doc 1:3.3.6-15 in Debian 4.0 (Etch). Also shipped by libstdc++6-doc. Parsed by carta from the page's man source.