Creates a treeset from a preexisting range.
Returns true if the treemap has the key.
Returns true if the treemap has the key.
Returns true if the element exists within the set, false otherwise.
Returns the amount of elements found in the set.
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.
Set operators. Enables math operations on sets, like unions and intersections. Could work on ranges in general as long as they implement some basic functions, like iteration.
@nogc capable indexing. 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 and alias less hasn't been changed. 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 and alias less hasn't been changed. 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.
Set operators.
Set operators.
Returns the pointer of the element, or null if key not found.
Puts an element into the treeset
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.
Returns an array representation of the set.
Returns the number of currently held elements within the tree.
Generates an opApply and opApplyReverse pair for a TreeMap with the supplied attributes
Generates an opApply and opApplyReverse pair for a TreeMap with the supplied attributes
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 (as a tree set), 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, but this behavior can somewhat changed with alias less.