Sign in Join
FPDoc Onlineexperiment

TAVLTree.CreateObjectCompare constructor

Member of TAVLTreepublicIn unit AVL_Tree

Create an instance of the tree with extended compare method.

Declaration

pascal
constructor CreateObjectCompare
 (const OnCompareMethod: TObjectSortCompare)

Arguments

OnCompareMethod

The value for the OnObjectCompare.

Description

CreateObjectCompare is an alternative constructor that accepts a TObjectSortCompare compare function instead of a regular TListSortCompare compare function. The compare function can still be set in the OnObjectCompare property.

See also

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