Table of Contents

Constructor RandomAccessPriorityQueue

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

RandomAccessPriorityQueue(int, IComparer<TPriority>)

Initializes a new instance of the RandomAccessPriorityQueue<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 comparer used to determine the priority of elements.

Exceptions

ArgumentNullException

comparer is null.

ArgumentOutOfRangeException

capacity is negative.