range()
sum()
apply_fct()
Functions
Returns the vector [0, 1, 2, …, n-1].
Returns a vector [begin, begin + incr, begin + 2*incr, … ]. The array ends at end (excluded).
Returns the sum of the elements of a vector.
Applies a function on all the elements of a vector, and returns the obtained vector.
A lambda can be passed: apply_fct<int, long long>(range(7), [](int x) { return (long long)x * x; })