|
Ds\PriorityQueue::peekReturns the value at the front of the queue. Beschreibung
public mixed Ds\PriorityQueue::peek
( void
)
Returns the value at the front of the queue, but does not remove it. Parameter-ListeDiese Funktion hat keine Parameter. RückgabewerteThe value at the front of the queue. Fehler/ExceptionsUnderflowException if empty. BeispieleBeispiel #1 Ds\PriorityQueue::peek example
<?phpDas oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie: string(1) "b" |