Method ADT.Priority_queue()->peek()
- Method
peek
ValueTypepeek()- Description
Returns the item on top of the priority queue (which is also the element with the smallest priority value) without removing it.
ValueType peek()
Returns the item on top of the priority queue (which is also the element with the smallest priority value) without removing it.