Sign in Join
FPDoc Onlineexperiment

TFPHashObjectList.Create constructor

Member of TFPHashObjectListpublicIn unit Contnrs

Create a new instance of the hashlist.

Declaration

pascal
constructor Create(FreeObjects: Boolean=True)

Arguments

FreeObjects

Does the list own the objects.

Description

Create creates a new instance of TFPHashObjectList on the heap and sets the hash capacity to 1.

If FreeObjects is True (the default), then the list owns the objects: when an object is removed from the list, it is destroyed (freed from memory). Clearing the list will free all objects in the list.

See also

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