Structures

The following structures are available globally.

  • The HeapIterator used to conform to Sequence

    Note

    HeapIterator conforms to IteratorProtocol

    Note

    It’s generic H conforms to Heap
    See more

    Declaration

    Swift

    public struct HeapIterator<H> : IteratorProtocol where H : Heap
  • A MaxHeap using iterative heapify methods.

    Note

    MaxHeap conforms to Heap

    Note

    The datatype in the Heap must conform to Comparable.
    See more

    Declaration

    Swift

    public struct MaxHeap<T> : Heap where T : Comparable
  • A MinHeap using iterative heapify methods.

    Note

    MinHeap conforms to Heap

    Note

    The datatype in the Heap must conform to Comparable.
    See more

    Declaration

    Swift

    public struct MinHeap<T> : Heap where T : Comparable
  • A MaxHeapRecursive using recursive heapify methods.

    Note

    MaxHeapRecursive conforms to Heap

    Note

    The datatype in the Heap must conform to Comparable.
    See more

    Declaration

    Swift

    public struct MaxHeapRecursive<T> : Heap where T : Comparable
  • A MinHeapRecursive using recursive heapify methods.

    Note

    MinHeapRecursive conforms to Heap

    Note

    The datatype in the Heap must conform to Comparable.
    See more

    Declaration

    Swift

    public struct MinHeapRecursive<T> : Heap where T : Comparable