|
Ds\PriorityQueue::popRemoves and returns the value with the highest priority. Beschreibung
public mixed Ds\PriorityQueue::pop
( void
)
Removes and returns the value at the front of the queue, ie. the value with the highest priority.
Parameter-ListeDiese Funktion hat keine Parameter. RückgabewerteThe removed value which was at the front of the queue. Fehler/ExceptionsUnderflowException if empty. BeispieleBeispiel #1 Ds\PriorityQueue::pop example
<?phpDas oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie: string(1) "a" string(1) "b" string(1) "c" |