Table of Contents

Constructor IndexPriorityQueue

Namespace
Gamelogic.Extensions.Algorithms
Assembly
Gamelogic.Extensions.dll

IndexPriorityQueue(int, IComparer<TPriority>)

Initializes a new instance of the IndexPriorityQueue<TElement, TPriority> class with a specified capacity and comparer.

public IndexPriorityQueue(int capacity, IComparer<TPriority> comparer)

Parameters

capacity int

The maximum number of elements the priority queue can hold.

comparer IComparer<TPriority>

The IComparer to determine the priority of elements.