iterator Struct Template Reference

#include <stl_iterator_base_types.h>

Inheritance diagram for iterator:

Inheritance graph
List of all members.

Detailed Description

template<typename Category, typename Type, typename Distance = ptrdiff_t, typename Pointer = Type*, typename Reference = Type&>
struct std::iterator< Category, Type, Distance, Pointer, Reference >

This class does nothing but define nested typedefs. Iterator classes can inherit from this class to save some work. The typedefs are then used in specializations and overloading.

In particular, there are no default implementations of requirements such as operator++ and the like. (How could there be?)

Definition at line 106 of file stl_iterator_base_types.h.

Public Types


Member Typedef Documentation

typedef Distance difference_type
 

Distance between iterators is represented as this type.

Definition at line 113 of file stl_iterator_base_types.h.

typedef Category iterator_category
 

One of the tag types.

Definition at line 109 of file stl_iterator_base_types.h.

typedef Pointer pointer
 

This type represents a pointer-to-value_type.

Definition at line 115 of file stl_iterator_base_types.h.

typedef Reference reference
 

This type represents a reference-to-value_type.

Definition at line 117 of file stl_iterator_base_types.h.

typedef Type value_type
 

The type "pointed to" by the iterator.

Definition at line 111 of file stl_iterator_base_types.h.


The documentation for this struct was generated from the following file:
Generated on Sun Sep 12 15:50:18 2004 for libstdc++ source by doxygen 1.3.8