BTreeMapRange

Structure representing an inorder range over a BTreeMap.

If tree has changed during the iteration, range will throw an RangeInvalidatedException. If the user knows that the tree will not change during the range traversal, it is safe to call range's methods - it will throw an exception if this promise is broken. In case user knows that the tree can be changed any time, it is possible to call BTreeMapRange.isValid before performing any action on the range to check if the accessing is safe. This is only true for the single-threaded environment.

Members

Aliases

KeyValue
alias KeyValue = Pair!(BTreeMap.KeyType, BTreeMap.ValueType)

(key, value) pair to return to the caller

Functions

empty
bool empty()
front
KeyValue front()
isValid
bool isValid()
popFront
void popFront()

Pops the next element from the tree.

Meta