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));