Table of Contents

Constructor RandomAccessPriorityQueue

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

RandomAccessPriorityQueue(int, IComparer<TPriority>)

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

public RandomAccessPriorityQueue(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.