array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'ja', ), 'this' => array ( 0 => 'ds-map.capacity.php', 1 => 'Ds\\Map::capacity', ), 'up' => array ( 0 => 'class.ds-map.php', 1 => 'Ds\\Map', ), 'prev' => array ( 0 => 'ds-map.apply.php', 1 => 'Ds\\Map::apply', ), 'next' => array ( 0 => 'ds-map.clear.php', 1 => 'Ds\\Map::clear', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/ds/ds/map/capacity.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL ds >= 1.0.0)
Ds\Map::capacity — Returns the current capacity
この関数にはパラメータはありません。
The current capacity.
例1 Ds\Map::capacity() example
<?php
$map = new \Ds\Map();
var_dump($map->capacity());
?>
上の例の出力は、 たとえば以下のようになります。
int(16)