subset()
Data / Array FunctionsDescription
Extracts an array of elements from an existing vector.
Syntax
std::vector subset(std::vector arr, int start)
std::vector subset(std::vector arr, int start, int count)
Parameters
| Name | Type | Description |
|---|---|---|
| arr | std::vector | the source vector |
| start | int | starting index |
| count | int | number of elements (optional) |
Returns
std::vectorRelated
Under the Hood
Implementation in Processing.h / Processing.cpp:
Loading...