Click or drag to resize

PriorityQueueTDequeue Method

Gets the item with the highest priority and removes it from the queue.

Namespace: GSF.Collections
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.218-beta+101eee949414e414795e55a6e73d88938f0177b8
Syntax
public T Dequeue()
View Source

Return Value

T
The item with the highest priority.
Exceptions
ExceptionCondition
InvalidOperationExceptionThe queue is empty.
Remarks
After removing an item from the queue, the heap will need to be fixed, therefore this is an O(log n) operation.
See Also