popHeap

Removes the top element from buf by swapping it with the bottom element, adjusting it down the heap, and reducing the length of buf by one.

  1. void popHeap(Elem[] buf, Pred2E pred)
    version(TangoDoc)
    void
    popHeap
  2. template popHeap(Buf)
  3. template popHeap(Buf, Pred)

Parameters

buf Elem[]

The heap to modify. This parameter is marked 'ref' because buf.length will be altered.

pred Pred2E

The evaluation predicate, which should return true if e1 is less than e2 and false if not. This predicate may be any callable type.

Meta