Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Generic Iterator?

Moderators: larsivi kris

Posted: 05/01/11 16:15:34


the class tango.util.container.LinkedList? is based upon Java's Collections package. Java has generic Iterator interfaces (java.util.Iterator, java.util.ListIterator?) which are used by LinkedList? and many other collection classes.

Tango's LinkedList? Iterator seems to be a private member struct so how could it be used in a generic fashion?

I want to write an Interface which returns an Iterator over a list of names. The implementation of the List isn't known at this point.

Thanks, Rainer

There are no responses to display.