Constructs a heap from an initial capacity and a comparer used to determine priority.

Declaration Syntax

Public Sub New( _
	ByVal capacity As Integer, _
	ByVal comparer As IComparer`1 _
)
public BinaryHeap`1(
	int capacity,
	IComparer`1<T> comparer
);
public: BinaryHeap`1(
	int capacity,
	IComparer`1 comparer
);
public function BinaryHeap`1(
	capacity : int,
	comparer : IComparer`1
);

Parameters

capacity
The initial capacity of the heap, not the count. 
comparer
comparer used to determine the priority of items in the heap. 

Remarks

capcity is how much space is initally allocated in the heap to store items, not the count of actually stored items.

Requirements

Namespace: Eas.WebCrawler.Common.Collections
Assembly: Eas.WebCrawler.Common (eas.webcrawler.common.dll)

See Also

BinaryHeap`1 Class | BinaryHeap`1 Members | Eas.WebCrawler.Common.Collections Namespace