Increases the capacity, as needed, to the specified amount in the given vector object.
Syntax
ensureCapacity( vector , number )
vector.ensureCapacity( number )
Parameters
vector
|
the vector object to use.
|
number
|
the minimum capacity.
|
Returns
Example
v.ensureCapacity( minCapacity )
|