Skip to content

TAVLTree.CreateObjectCompare

Create an instance of the tree with extended compare method.

Declaration

Source position: avl_tree.pp line 114

public 
constructor TAVLTree.CreateObjectCompare
                                        (const OnCompareMethod: TObjectSortCompare);

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 TAVLTree.OnObjectCompare property.

See also

Name Description
TAVLTree.OnObjectCompare Compare handler.