[comp.lang.c++] How do I use a Turbo C++ Classlib iterator?

jfm@uncmed.med.unc.edu (02/28/91)

Could some kind soul please give me an example of how to use the Turbo C++
Classlib class ListIterator?  I want to make a List of objects and then
access the public elements of each object on the list, and I'm at a loss as
to how the iterator works.


  John Miller
  Department of Pharmacology, UNC-CH School of Medicine
  1026A FLOB  (231H) CB#7365, Chapel Hill, NC  27599    Tel: (919) 966-6966

jfm@hasty.med.unc.edu (John F. Miller) (02/28/91)

Could some kind soul please give me an example of how to use the Turbo C++
Classlib class ListIterator?  I want to make a List of objects and then
access the public elements of each object on the list, and I'm at a loss as
to how the iterator works.

An example of the use of ForEach would be very helpful, too.

  John Miller
  Department of Pharmacology, UNC-CH School of Medicine
  1026A FLOB  (231H) CB#7365, Chapel Hill, NC  27599    Tel: (919) 966-6966