Sign in Join
FPDoc Onlineexperiment

TFPHashList.Capacity property

Member of TFPHashListpublicIn unit Contnrs

Capacity of the list.

Declaration

pascal
property Capacity: uint32 read FCapacity 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.