vector_view vector::subvector ( size_t  offset,
size_t  n 
)

Functions return a vector view of a subvector of another vector v.

Parameters:
offset: New vector offset by this many elements from start of old vector
n: number of elements in new vector

The start of the new vector is offset by offset elements from the start of the original vector. The new vector has n elements. Mathematically, the i-th element of the new vector v' is given by, v'(i) = v->data[(offset + i)*v->stride] where the index i runs from 0 to n-1.

 All Classes Files Functions Variables Typedefs Friends Defines