Click or drag to resize

PriorityQueueT Constructor (IComparerT)

Namespace:  Ookii.Jumbo
Assembly:  Ookii.Jumbo (in Ookii.Jumbo.dll) Version: 2.0.0
Syntax
public PriorityQueue(
	IComparer<T> comparer
)

Parameters

comparer
Type: System.Collections.GenericIComparerT
The IComparerT implementation to use when comparing elements, or to use the default ComparerT for the type of element.
Remarks

PriorityQueueT requires a comparer implementation to perform key comparisons. If comparer is , this constructor uses the default generic equality comparer, Default. If type T implements the IComparableT generic interface, the default comparer uses that implementation.

This constructor is an O(1) operation.

See Also