iterator
class,
and you should create an iterator
object by
instantiating the following pattern:
iterator<object type> iterator name (list name);
access
member function,
then instantiate the following pattern:
iterator name.access ( )
advance
member function,
then instantiate the following pattern:
iterator name.advance ( )
access
, advance
, endp
,
and reset
member functions, then instantiate the following pattern:
iterator name.reset ( ); for (; iterator name.endp ( ) ; iterator name.advance ( )) { ... iterator name.access ( ) ... }