subset()
Data / Array FunctionsDescription
Extracts an array of elements from an existing vector.
Syntax
std::vector<T> subset(std::vector<T> arr, int start)
std::vector<T> subset(std::vector<T> 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) |