stacking two vectors in c++ code example Example: how to append two vectors in c++ Click to copystd::vector<int> AB = A; AB.insert(AB.end(), B.begin(), B.end());