Click or drag to resize

PriorityQueueTRemove Method

Removes the first occurrence of a specific object from the PriorityQueueT.

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

Parameters

item  T
The object to remove from the PriorityQueueT.

Return Value

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

Implements

ICollectionTRemove(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