RedBlackTree.empty

Checks if the tree is empty.

Arguments

None

Return values

condition
is TRUE if there are no entries in the tree, FALSE otherwise.

Complexity

Constant

Example

"sl/redBlackTree" useFile a: RedBlackTree; a.empty print LF print 34 "element" a.insert a.empty print
Output:
TRUE FALSE