expand()

Data / Array Functions

Description

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

NameTypeDescription
arrstd::vectorthe vector to expand
nintnew size (optional, default doubles)

Returns

std::vector

Related

Under the Hood

Implementation in Processing.h / Processing.cpp:

Loading...