Appending elements from vector v to vector w.

How do I append all the elements of one vector to another vector? Ex. v = (3, 4, 5) w = (7, 9, 10) --------- v = (3, 4, 5, 7, 9, 10)
1
2
for (unsigned i = 0; i < w.size(); ++i)
    v.push_back(w[i]);
Thanks.
 
    v.insert(v.end(), w.begin(), w.end());
Topic archived. No new replies allowed.