Click or drag to resize

PriorityQueue<T> .Remove Method

Removes the first occurrence of a specific object from the PriorityQueue<T>.

Namespace: GSF.Collections
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.241-beta+912389e96d98840d2a999d490420db618dcbe4c6
Syntax
public bool Remove(
	T item
)
View Source

Parameters

item  T
The object to remove from the PriorityQueue<T>.

Return Value

Boolean
true if item was successfully removed from the PriorityQueue<T>; otherwise, false. This method also returns false if item is not found in the original PriorityQueue<T>.

Implements

ICollection<T>.Remove(T)
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