subset()

Data / Array Functions

Description

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

NameTypeDescription
arrstd::vectorthe source vector
startintstarting index
countintnumber of elements (optional)

Returns

std::vector

Related

Under the Hood

Implementation in Processing.h / Processing.cpp:

Loading...