vector<int> a; vector<int> b; a.insert(a.end(), b.begin(), b.end()); // or a.insert(std::end(a), std::begin(b), std::end(b));
std::copy (b.begin(), b.end(), std::back_inserter(a));