TAVLTree.FindNearestKey function
Find nearest key for a data pointer.
Declaration
function FindNearestKey(Key: Pointer;
const OnCompareKeyWithData: TListSortCompare)
: TAVLTreeNodeArguments
Key | Key to search with. |
OnCompareKeyWithData | Compare function. |
Function result
The nearest possible key, if any.
Description
FindNearestKey attempts to find the nearest possible key in the tree using the
OnCompareKeyWithData function.
It returns the closest possible key in the tree.Errors
None.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
