The OpenD Programming Language

BinaryHeap.conditionalSwap

Swapping is allowed if the heap is full. If less(value, front), the method exchanges store.front and value and returns true. Otherwise, it leaves the heap unaffected and returns false.

struct BinaryHeap(alias less = "a < b", Store)
scope
bool
conditionalSwap
(
ref ElementType!Store value
)
if ()

Meta