Class RedBlackTreeLinked
Static helpers for RedBlackTreeLinked<T, TCompare>.
Inheritance
System.Object
RedBlackTreeLinked
Namespace: Towel.DataStructures
Assembly: Towel.dll
Syntax
public static class RedBlackTreeLinked : object
Methods
| Improve this Doc View SourceNew<T>(Nullable<Func<T, T, CompareResult>>)
Constructs a new RedBlackTreeLinked<T, TCompare>.
Declaration
public static RedBlackTreeLinked<T, SFunc<T, T, CompareResult>> New<T>(Func<T, T, CompareResult>? compare = null)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<Func<T, T, CompareResult>> | compare | The function for comparing |
Returns
Type | Description |
---|---|
RedBlackTreeLinked<T, SFunc<T, T, CompareResult>> | The new constructed RedBlackTreeLinked<T, TCompare>. |
Type Parameters
Name | Description |
---|---|
T | The type of values stored in this data structure. |