Man
Container
RedBlackTree
clear
RedBlackTree.clear
Deletes all entries from the tree.
Arguments
None
Return values
None
Complexity
O(size)
Example
"sl/redBlackTree" useFile a: RedBlackTree; 34 "element" a.insert a [print LF print TRUE] enum a.clear "after clear" LF & print a [print LF print TRUE] enum
Output:
{ key: 34; value: "element"; } after clear