Class TreeMap
Static members for the TreeMap<T, TEquate, THash> type.
Inheritance
System.Object
TreeMap
Namespace: Towel.DataStructures
Assembly: Towel.dll
Syntax
public static class TreeMap : object
Methods
| Improve this Doc View SourceNew<T>(T, Nullable<Func<T, T, Boolean>>, Nullable<Func<T, Int32>>)
Constructs a new TreeMap<T, TEquate, THash>.
Declaration
public static TreeMap<T, SFunc<T, T, bool>, SFunc<T, int>> New<T>(T top, Func<T, T, bool>? equate = null, Func<T, int>? hash = null)
Parameters
Type | Name | Description |
---|---|---|
T | top | The top of the tree. |
System.Nullable<Func<T, T, System.Boolean>> | equate | The function for comparing |
System.Nullable<Func<T, System.Int32>> | hash | The function for hashing |
Returns
Type | Description |
---|---|
TreeMap<T, SFunc<T, T, System.Boolean>, SFunc<T, System.Int32>> | The new constructed TreeMap<T, TEquate, THash>. |
Type Parameters
Name | Description |
---|---|
T | The type of values stored in this data structure. |