TAVLTree.IsEqual function
Check whether 2 tree instances are equal.
Declaration
function IsEqual(aTree: TAVLTree; CheckDataPointer: Boolean): BooleanArguments
aTree | Tree to compare with. |
CheckDataPointer | Should the data pointer be checked instead of the key ? |
Function result
True if both trees are equal.
Description
IsEqual checks the current tree with
aTree and checks whether the two trees contain
the same data in the same order and whether they use the same compare methods, and node class.
If
CheckDataPointer is
True, only the data pointers are compared, not the keys.Errors
None.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
