PriorityQueue<TElement,TPriority> Constructors

Definition

Overloads

PriorityQueue<TElement,TPriority>()
PriorityQueue<TElement,TPriority>(IComparer<TPriority>)
PriorityQueue<TElement,TPriority>(IEnumerable<ValueTuple<TElement,TPriority>>)
PriorityQueue<TElement,TPriority>(Int32)
PriorityQueue<TElement,TPriority>(IEnumerable<ValueTuple<TElement,TPriority>>, IComparer<TPriority>)
PriorityQueue<TElement,TPriority>(Int32, IComparer<TPriority>)

PriorityQueue<TElement,TPriority>()

public:
 PriorityQueue();
public PriorityQueue ();
Public Sub New ()

Applies to

PriorityQueue<TElement,TPriority>(IComparer<TPriority>)

public:
 PriorityQueue(System::Collections::Generic::IComparer<TPriority> ^ comparer);
public PriorityQueue (System.Collections.Generic.IComparer<TPriority>? comparer);
new System.Collections.Generic.PriorityQueue<'Element, 'Priority> : System.Collections.Generic.IComparer<'Priority> -> System.Collections.Generic.PriorityQueue<'Element, 'Priority>
Public Sub New (comparer As IComparer(Of TPriority))

Parameters

comparer
IComparer<TPriority>

Applies to

PriorityQueue<TElement,TPriority>(IEnumerable<ValueTuple<TElement,TPriority>>)

public:
 PriorityQueue(System::Collections::Generic::IEnumerable<ValueTuple<TElement, TPriority>> ^ items);
public PriorityQueue (System.Collections.Generic.IEnumerable<(TElement,TPriority)> items);
new System.Collections.Generic.PriorityQueue<'Element, 'Priority> : seq<ValueTuple<'Element, 'Priority>> -> System.Collections.Generic.PriorityQueue<'Element, 'Priority>
Public Sub New (items As IEnumerable(Of ValueTuple(Of TElement, TPriority)))

Parameters

items
IEnumerable<ValueTuple<TElement,TPriority>>

Applies to

PriorityQueue<TElement,TPriority>(Int32)

public:
 PriorityQueue(int initialCapacity);
public PriorityQueue (int initialCapacity);
new System.Collections.Generic.PriorityQueue<'Element, 'Priority> : int -> System.Collections.Generic.PriorityQueue<'Element, 'Priority>
Public Sub New (initialCapacity As Integer)

Parameters

initialCapacity
Int32

Applies to

PriorityQueue<TElement,TPriority>(IEnumerable<ValueTuple<TElement,TPriority>>, IComparer<TPriority>)

public:
 PriorityQueue(System::Collections::Generic::IEnumerable<ValueTuple<TElement, TPriority>> ^ items, System::Collections::Generic::IComparer<TPriority> ^ comparer);
public PriorityQueue (System.Collections.Generic.IEnumerable<(TElement,TPriority)> items, System.Collections.Generic.IComparer<TPriority>? comparer);
new System.Collections.Generic.PriorityQueue<'Element, 'Priority> : seq<ValueTuple<'Element, 'Priority>> * System.Collections.Generic.IComparer<'Priority> -> System.Collections.Generic.PriorityQueue<'Element, 'Priority>
Public Sub New (items As IEnumerable(Of ValueTuple(Of TElement, TPriority)), comparer As IComparer(Of TPriority))

Parameters

items
IEnumerable<ValueTuple<TElement,TPriority>>
comparer
IComparer<TPriority>

Applies to

PriorityQueue<TElement,TPriority>(Int32, IComparer<TPriority>)

public:
 PriorityQueue(int initialCapacity, System::Collections::Generic::IComparer<TPriority> ^ comparer);
public PriorityQueue (int initialCapacity, System.Collections.Generic.IComparer<TPriority>? comparer);
new System.Collections.Generic.PriorityQueue<'Element, 'Priority> : int * System.Collections.Generic.IComparer<'Priority> -> System.Collections.Generic.PriorityQueue<'Element, 'Priority>
Public Sub New (initialCapacity As Integer, comparer As IComparer(Of TPriority))

Parameters

initialCapacity
Int32
comparer
IComparer<TPriority>

Applies to