Method TryDequeue
- Namespace
- Gamelogic.Extensions.Algorithms
- Assembly
- Gamelogic.Extensions.dll
TryDequeue(out (int index, TElement value))
Dequeues the minimum element from the priority queue if it is not empty.
public bool TryDequeue(out (int index, TElement value) result)
Parameters
result
(int index, TElement value)A tuple containing the index and value of the minimum element that was removed.