TFPObjectHashTable.Create constructor
Create a new instance of
TFPObjectHashTable.
Declaration
constructor Create(AOwnsObjects: Boolean=True)Arguments
AOwnsObjects | Does the hash table own the objects stored in it? |
Description
Create creates a new instance of
TFPObjectHashTable on
the heap. It sets the
OwnsObjects
property to
AOwnsObjects, and then calls the inherited
Create. If
AOwnsObjects is set to
True,
then the hash table owns the objects: whenever an object is removed from
the list, it is automatically freed.Errors
If not enough memory is available on the heap, an exception may be raised.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
