How do you copy the contents of an array to a std::vector in C++ without looping? has a great example how to simply copy the contents of an array into a vector.
Can you use the same technique to copy part of a vector into another vector?
e.g.
vector<int> v;
// ...v has some number of elements and we're interested in an
// arbitrary number (y) from an arbitrary start point (x)...
vector<int> v2(&v[x], &v[x + y]);