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(Store, alias less = "a < b")
bool
conditionalSwap
(
ref ElementType!Store value
)
if ()

Meta