Php/docs/ds-priorityqueue.capacity

提供:Dev Guides
< Php
2020年12月14日 (月) 13:01時点におけるNotes (トーク | 投稿記録)による版 (autoload)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
移動先:案内検索

Ds\PriorityQueue::capacity

(PECL ds >= 1.0.0)

Ds\PriorityQueue::capacityReturns the current capacity


説明

public Ds\PriorityQueue::capacity ( ) : int

Returns the current capacity.


パラメータ

この関数にはパラメータはありません。


返り値

The current capacity.


例1 Ds\PriorityQueue::capacity() example

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

上の例の出力は、 たとえば以下のようになります。


int(8)