Method TryDequeue
TryDequeue(out TElement, out TPriority)
Removes the minimal element from the UpdatablePriorityQueue<TElement, TPriority>,
and copies it to the element parameter,
and its associated priority to the priority parameter.
Declaration
public bool TryDequeue(out TElement element, out TPriority priority)
Parameters
| Type | Name | Description |
|---|---|---|
| TElement | element | The removed element. |
| TPriority | priority | The priority associated with the removed element. |
Returns
| Type | Description |
|---|---|
| bool | true if the element is successfully removed; false if the UpdatablePriorityQueue<TElement, TPriority> is empty. |