Click or drag to resize
Accord.NET (logo)

RedBlackTreeT Constructor (IComparerT, Boolean)

Constructs a new RedBlackTreeT using the provided IComparerT implementation.

Namespace:  Accord.Collections
Assembly:  Accord (in Accord.dll) Version: 3.8.0
Syntax
public RedBlackTree(
	IComparer<T> comparer,
	bool allowDuplicates
)
Request Example View Source

Parameters

comparer
Type: System.Collections.GenericIComparerT
The element comparer to be used to order elements in the tree.
allowDuplicates
Type: SystemBoolean
Pass true to allow duplicate elements in the tree; false otherwise.
See Also