adding vectors

I have two vectors and I want to add the second vector on to the end of the first vector.

Is that as simple as saying vector1 + vector2 or vector1 << vector2?
vector1.insert( vector1.end(), vector2.begin(), vector2.end() );

See:
http://www.cplusplus.com/reference/stl/vector/insert/
Topic archived. No new replies allowed.