[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'contnrs' (#fcl)

TFPHashList.Capacity

Capacity of the list.

Declaration

Source position: contnrs.pp line 252

public property TFPHashList.Capacity: Integer
  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

Count

  

Current number of elements in the list.

Items

  

Indexed array with pointers

The latest version of this document can be found at lazarus-ccr.sourceforge.net.