The OpenD Programming Language

BinaryHeap.this

Converts the store s into a heap. If initialSize is specified, only the first initialSize elements in s are transformed into a heap, after which the heap can grow up to r.length (if Store is a range) or indefinitely (if Store is a container with insertBack). Performs O(min(r.length, initialSize)) evaluations of less.

struct BinaryHeap(Store, alias less = "a < b")
this
(
Store s
,
size_t initialSize = size_t.max
)
if ()

Meta