Method EnqueueRange
EnqueueRange(IEnumerable<(TElement Element, TPriority Priority)>)
Enqueues a sequence of element/priority pairs to the UpdatablePriorityQueue<TElement, TPriority>.
Declaration
public void EnqueueRange(IEnumerable<(TElement Element, TPriority Priority)> items)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<(TElement Element, TPriority Priority)> | items | The pairs of elements and priorities to add to the queue. |
Remarks
Any existing elements will be unconditionally updated to the new priority.
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | The specified |
EnqueueRange(IEnumerable<TElement>, TPriority)
Enqueues a sequence of elements pairs to the UpdatablePriorityQueue<TElement, TPriority>, all associated with the specified priority.
Declaration
public void EnqueueRange(IEnumerable<TElement> elements, TPriority priority)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<TElement> | elements | The elements to add to the queue. |
| TPriority | priority | The priority to associate with the new elements. |
Remarks
Any existing elements will be unconditionally updated to the new priority.
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | The specified |