Heap.capacity

Reserve enough space in this heap for value elements. The reserved space is truncated or extended as necessary. If the value is less than the number of elements already in the heap, throw an exception.

  1. size_t capacity()
  2. size_t capacity(size_t value)
    struct Heap(T, alias Compare = minHeapCompare!(T), alias Move = defaultHeapSwap!(T))

Meta