Click or drag to resize

PriorityQueueTCount Property

Namespace:  Ookii.Collections.Generic
Assembly:  Ookii.Collections.Generic (in Ookii.Collections.Generic.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public int Count { get; }

Property Value

Type: Int32
The number of elements contained in the PriorityQueueT.

Implements

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