System.Generics.Collections.TQueue.Capacity
Delphi
property Capacity: NativeInt read GetCapacity write DoSetCapacity;
C++
__property System::NativeInt Capacity = {read=GetCapacity, write=DoSetCapacity, nodefault};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | System.Generics.Collections.pas System.Generics.Collections.hpp |
System.Generics.Collections | TQueue |
Description
Queue capacity.
Capacity gets or sets the queue capacity, that is, the maximum size of the queue without resizing. The capacity cannot be set to less than Count, the actual number of items in the queue.
The TrimExcess method reduces the capacity of the queue to its current number of elements, Count.