Click or drag to resize
Accord.NET (logo)

RedBlackTreeTKey, TValue Constructor (IComparerKeyValuePairTKey, TValue, Boolean)

Constructs a new RedBlackTreeT using the provided IComparerT implementation.

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

Parameters

comparer
Type: System.Collections.GenericIComparerKeyValuePairTKey, TValue
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