Method EnqueueRangeMinimum
View SourceEnqueueRangeMinimum(IEnumerable<(TElement Element, TPriority Priority)>)
Enqueues a sequence of element/priority pairs to the UpdatablePriorityQueue<TElement, TPriority>.
Declaration
public void EnqueueRangeMinimum(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 updated to the new priority if and only if the new priority is lower than the existing priority.
Exceptions
Type | Condition |
---|---|
ArgumentNullException | The specified |
EnqueueRangeMinimum(IEnumerable<TElement>, TPriority)
Enqueues a sequence of elements pairs to the UpdatablePriorityQueue<TElement, TPriority>, all associated with the specified priority.
Declaration
public void EnqueueRangeMinimum(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 updated to the new priority if and only if the new priority is lower than the existing priority.
Exceptions
Type | Condition |
---|---|
ArgumentNullException | The specified |