Method ADT.Priority_queue()->peek()

class ADT.Priority_queue

Method peek

ValueType peek()

Description

Returns the item on top of the priority queue (which is also the element with the smallest priority value) without removing it.

See also

pop()