expand()
Data / Array FunctionsDescription
Increases the size of a std::vector. With no second argument, doubles the size.
Syntax
std::vector expand(std::vector arr)
std::vector expand(std::vector arr, int n)
Parameters
| Name | Type | Description |
|---|---|---|
| arr | std::vector | the vector to expand |
| n | int | new size (optional, default doubles) |
Returns
std::vectorRelated
Under the Hood
Implementation in Processing.h / Processing.cpp:
Loading...