Optional
cmp: ((x: K, y: K) => number)The compare function.
Optional
enableIndex: booleanWhether to enable iterator indexing function.
Iterator pointing to the beginning element.
Iterator pointing to the super end like c++.
Removes element by iterator and move iter
to next.
container.eraseElementByIterator(container.begin());
The iterator you want to erase.
An iterator pointing to the element if found, or super end if not found.
The element you want to find.
Iterate over all elements in the container.
Callback function like Array.forEach.
An iterator to the first element not less than the given _key.
The given _key you want to compare.
Iterator pointing to the end element.
Iterator pointing to the super begin like c++.
An iterator to the first element not greater than the given _key.
The given _key you want to compare.
An iterator to the first element less than the given _key.
The given _key you want to compare.
Insert a _key-_value pair or set _value by the given _key.
The _key want to insert.
The _value want to set.
Optional
hint: OrderedMapIterator<K, V>You can give an iterator hint to improve insertion efficiency.
Union the other tree to self.
The other tree container you want to merge.
Update node's _key by iterator.
Boolean about if the modification is successful.
The iterator you want to change.
The _key you want to update.
An iterator to the first element greater than the given _key.
The given _key you want to compare.
Generated using TypeDoc
The initialization container.