Check out example codes for "how to append one vector to another c++". It will help you in understanding the concepts better.

Code Example 1

vector<int> a;
vector<int> b;
// Appending the integers of b to the end of a 
a.insert(a.end(), b.begin(), b.end());

Code Example 2

a.insert(a.end(), b.begin(), b.end());

Learn ReactJs, React Native from akashmittal.com