Ds\Queue::capacity

Returns the current capacity

&reftitle.description; public `int` `Ds\Queue::capacity`

Returns the current capacity.

&reftitle.parameters; &no.function.parameters;
&reftitle.returnvalues;

The current capacity.

&reftitle.examples;

### `Ds\Queue::capacity` example

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

    $queue->push(...range(1, 50));
    var_dump($queue->capacity());
    ?>

&example.outputs.similar;

    int(8)
    int(64)