System.Generics.Collections.TStack.Capacity

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Capacity: Integer read GetCapacity write DoSetCapacity;

C++

__property int 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 TStack

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.

See Also