RedBlackTree.endIter
Returns an end iterator.
Arguments
None
Return values
iterator
is a RedBlackTreeIterator pointing to a non-existing element after the end of the tree. Getters and setters cannot be used for this iterator, it is only necessary for a condition of completing a search. The previous iterator for it points to the last element of the tree.
Complexity
Constant
Example
Output:
{ key: -25; value: "element"; }
{ key: 0; value: "ZERO"; }
{ key: 19; value: "nineteen"; }
{ key: 32; value: { a: 0; b: 1; }; }
{ key: 34; value: "element"; }
{ key: 35; value: "element"; }
{ key: 3481; value: 135; }