expand()
Data / Array FunctionsDescription
Increases the size of a std::vector. With no second argument, doubles the size.
Syntax
std::vector<T> expand(std::vector<T> arr)
std::vector<T> expand(std::vector<T> arr, int n)
Parameters
| Name | Type | Description |
|---|---|---|
| arr | std::vector | the vector to expand |
| n | int | new size (optional, default doubles) |