Muokkaa

Jaa


PriorityQueue<TElement,TPriority>.EnqueueRange Method

Definition

Overloads

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

Enqueues a sequence of element-priority pairs to the PriorityQueue<TElement,TPriority>.

EnqueueRange(IEnumerable<TElement>, TPriority)

Enqueues a sequence of elements pairs to the PriorityQueue<TElement,TPriority>, all associated with the specified priority.

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

Source:
PriorityQueue.cs
Source:
PriorityQueue.cs
Source:
PriorityQueue.cs

Enqueues a sequence of element-priority pairs to the PriorityQueue<TElement,TPriority>.

public:
 void EnqueueRange(System::Collections::Generic::IEnumerable<ValueTuple<TElement, TPriority>> ^ items);
public void EnqueueRange (System.Collections.Generic.IEnumerable<(TElement Element, TPriority Priority)> items);
member this.EnqueueRange : seq<ValueTuple<'Element, 'Priority>> -> unit
Public Sub EnqueueRange (items As IEnumerable(Of ValueTuple(Of TElement, TPriority)))

Parameters

items
IEnumerable<ValueTuple<TElement,TPriority>>

The pairs of elements and priorities to add to the queue.

Exceptions

The specified items argument was null.

Applies to

EnqueueRange(IEnumerable<TElement>, TPriority)

Source:
PriorityQueue.cs
Source:
PriorityQueue.cs
Source:
PriorityQueue.cs

Enqueues a sequence of elements pairs to the PriorityQueue<TElement,TPriority>, all associated with the specified priority.

public:
 void EnqueueRange(System::Collections::Generic::IEnumerable<TElement> ^ elements, TPriority priority);
public void EnqueueRange (System.Collections.Generic.IEnumerable<TElement> elements, TPriority priority);
member this.EnqueueRange : seq<'Element> * 'Priority -> unit
Public Sub EnqueueRange (elements As IEnumerable(Of TElement), priority As TPriority)

Parameters

elements
IEnumerable<TElement>

The elements to add to the queue.

priority
TPriority

The priority to associate with the new elements.

Exceptions

The specified elements argument was null.

Applies to