TFPSList.Capacity property
Current capacity of the list.
Declaration
property Capacity: Integer read FCapacity write SetCapacity;Description
Capacity is the current capacity (maximum amount of elements) of the list.
The list capacity will expand automatically if an item is added and the capacity is reached
(i.e.
Count equals
capacity. Expanding the
list is an expensive operation involving reallocation of memory and moving of list data in memory,
so capacity can be set to a large amount to avoid frequent reallocations.See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
