PHP - Fonction Ds \ PriorityQueue :: capacity ()

La fonction Ds \ PriorityQueue :: capacity () peut renvoyer la capacité actuelle.

Syntaxe

public int Ds\PriorityQueue::capacity( void )

La fonction Ds \ PriorityQueue :: capacity () n'a aucun paramètre.

Exemple

<?php  
   $pqueue = new \Ds\PriorityQueue();  
   var_dump($pq->capacity());  
?>