RedBlackTree.eraseIter
Deletes an entry by its iterator.
Arguments
iterator
is a RedBlackTreeIterator pointing to the entry to erase. The iterator and all ranges that include it as a "first" or an "end" iterator become invalid. If the iterator is an "end" iterator, an error will occur.
Return values
None
Complexity
O(log(size))
Example
Output:
{ key: -25; value: "element"; }
{ key: 0; value: "ZERO"; }
{ key: 32; value: { a:0; b: 1; }; }
{ key: 34; value: "element"; }
{ key: 35; value: "element"; }
{ key: 481; value: 135; }