.\" ident @(#)iterator.3 .\" Standard Template Library .\" $$RW_INSERT_HEADER "slyrs.man" .TH iterator 3C++ "02 Apr 1998" "Rogue Wave Software" "-" .ce2 Standard C++ Library Copyright 1998, Rogue Wave Software, Inc. .SH NAME \f2iterator\fP \ - A base iterator class. .SH SYNOPSIS .RE .RS 0 #include .br template .RE .RS 0 struct iterator .br { .RE .RS 2 typedef T value_type; .br typedef Distance difference_type; .br typedef Pointer pointer; .br typedef Reference reference; .br typedef Category iterator_category; .RE .RS 0 }; .SH DESCRIPTION The_iterator structure is a base class from which all other iterator types can be derived. This structure defines an interface that consists of five public types: \f2value_type\fP, \f2difference_type\fP, \f2pointer\fP, \f2reference\fP, and \f2iterator_category\fP. These types are used primarily by classes derived from iterator and by the_iterator_traits class. See the iterators section for a description of iterators and the capabilities associated with various types. .SH SEE ALSO iterator_traits