Possible Duplicate:
C++: Appending a vector to a vector
Can I easily sum a vector to another vector? What I mean is, push_back a vector to another vector:
{1, 2, 3} + {4, 8} = {1, 2, 3, 4, 8};
Do I have to do this manually:
for (int i = 0; i < to_sum_vector.size(); i++) {
first_vector.push_back(to_sum_vector.at(i));
}
Or is there a C++/STL way of doing it? Thank you!