Addressable Binary Heaps - v1.3.0
    Preparing search index...

    Function clear

    • Clears a max-heap instance by removing all elements and their index mappings.

      Type Parameters

      • H extends IHeapArray

        The type of max-heap array.

      Parameters

      • instance: H

        The max-heap instance to clear.

      Returns void