Click or drag to resize

PriorityQueueTCount Property

Gets the number of elements contained in the PriorityQueueT.

Namespace: Ookii.Jumbo
Assembly: Ookii.Jumbo (in Ookii.Jumbo.dll) Version: 0.3.0+dc1307f20e065bb638e0b73a34cd216f57e486f1
Syntax
public int Count { get; }

Property Value

Int32
The number of elements contained in the PriorityQueueT.

Implements

ICollectionTCount
ICollectionCount
Remarks

Capacity is the number of elements that the PriorityQueueT can store before resizing is required, while Count is the number of elements that are actually in the PriorityQueueT.

Capacity is always greater than or equal to Count. If Count exceeds Capacity while adding elements, the capacity is increased by automatically reallocating the internal array before copying the old elements and adding the new elements.

Retrieving the value of this property is an O(1) operation.

See Also