Sign in Join
FPDoc Onlineexperiment

TFPHashObjectList.Capacity property

Member of TFPHashObjectListpublicIn unit Contnrs

Capacity of the list.

Declaration

pascal
property Capacity: Integer read GetCapacity write SetCapacity;

Description

Capacity returns the current capacity of the list. The capacity is expanded as more elements are added to the list. If a good estimate of the number of elements that will be added to the list, the property can be set to a sufficiently large value to avoid reallocation of memory each time the list needs to grow.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.