Returns the number of currently held elements within the tree.
Implements a simple left-to-right tree traversal.
Implements a simple left-to-right tree traversal.
Implements a simple left-to-right tree traversal by depth.
Implements a simple right-to-left tree traversal.
Implements a simple right-to-left tree traversal.
Implements a simple right-to-left tree traversal.
@nogc capable indexing. Can be indexed with any type of value as long as K.opCmp supports it. Returns the found element if match found. Returns E.init if match not found.
Indexing function that relies on the GC, and throws if no match found Can be indexed with any type of value as long as K.opCmp supports it. Returns the found element if match found.
@nogc capable indexing. Can be indexed with any type of value as long as K.opCmp supports it. Returns the found element if match found. Returns E.init if match not found.
Indexing function that relies on the GC, and throws if no match found Can be indexed with any type of value as long as K.opCmp supports it. Returns the found element if match found.
Assigns a value to the given key. If key found, the value will be overwritten without node insertion. If key isn't found, a new node will be inserted.
Returns the pointer of the element, or null if key not found.
Puts an element into the TreeMap
Rebalances the tree.
Removes an item by key. Returns the removed item if found, or E.init if not.
Removes an item by key. Returns the removed item if found, or K.init if not.
returns the string representation of the tree.
Implements an AVL tree backed treemap. Intended to used as an alternative to D's own associative array. If E set to void, then it works more like a regular tree datastructure, and can be indexed with any type K has an opCmp override. nogcIndexing changes the behavior of opIndex if no match is found. If set to true, indexing returns the default value if no match found, which will need some design consideration. If set to false, indexing throws an exception if no match found. Nodes should have the lesser elements on the left side. Behavior can be changed with less.