Iterators.Iterator

Provides 'foreach' and 'foreach_reverse' iteration over the nodes in the tree, starting with the first or last node, respectively.

Constructors

this
this(bool unique)

Constructor

Members

Functions

first
Node* first()
host
typeof(this.outer) host()
last
Node* last()
opApply
int opApply(int delegate(ref Node node) dg)

foreach iterator over nodes in the tree. Any tree modification is permitted during iteration.

opApplyReverse
int opApplyReverse(int delegate(ref Node node) dg)

foreach_reverse iterator over nodes in the tree. Any tree modification is permitted during iteration.

Variables

unique
bool unique;

Set to true to skip key duplicates. This flag may be changed during iteration.

Meta