Click or drag to resize

PriorityQueueTClear Method

Removes all objects from the PriorityQueueT.

Namespace: Ookii.Jumbo
Assembly: Ookii.Jumbo (in Ookii.Jumbo.dll) Version: 0.3.0+dc1307f20e065bb638e0b73a34cd216f57e486f1
Syntax
public void Clear()

Implements

ICollectionTClear
Remarks

Count is set to zero, and references to other objects from elements of the collection are also released.

The capacity remains unchanged. To reset the capacity of the PriorityQueueT, call TrimExcess. Trimming an empty PriorityQueueT sets the capacity of the PriorityQueueT to the default capacity.

This method is an O(n) operation, where n is Count.

See Also