BTreeIterator

public struct BTreeIterator<Key: Comparable, Value>: IteratorProtocol

An iterator for all elements stored in a B-tree, in ascending key order.

  • Advance to the next element and return it, or return nil if no next element exists.

    Complexity

    Amortized O(1)

    Declaration

    Swift

    public mutating func next() -> Element?