how to add an element to the end of a vector c++ code example
Example: insert vector to end of vector c++
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));
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));