Skip to content

TAVLTree.Assign

Assign another tree.

Declaration

Source position: avl_tree.pp line 140

public 
procedure TAVLTree.Assign(aTree: TAVLTree);  virtual;

Description

Assign copies all data from aTree to the current tree if they are not equal. The current tree is cleared first. Note that the compare function(s) and class node are not copied, only the data.

Errors

If you pass nil, an exception is raised.

See also

Name Description
TAVLTree.IsEqual Check whether 2 tree instances are equal.