132
|
1 /*
|
|
2 File: Iterator.d
|
|
3
|
|
4 Originally written by Doug Lea and released into the public domain.
|
|
5 Thanks for the assistance and support of Sun Microsystems Labs, Agorics
|
|
6 Inc, Loral, and everyone contributing, testing, and using this code.
|
|
7
|
|
8 History:
|
|
9 Date Who What
|
|
10 24Sep95 dl@cs.oswego.edu Create from collections.d working file
|
|
11
|
|
12 */
|
|
13
|
|
14
|
|
15 module tango.util.collection.model.Iterator;
|
|
16
|
|
17
|
|
18 /**
|
|
19 *
|
|
20 **/
|
|
21
|
|
22 public interface Iterator(V)
|
|
23 {
|
|
24 public bool more();
|
|
25
|
|
26 public V get();
|
|
27
|
|
28 int opApply (int delegate (inout V value) dg);
|
|
29 }
|