how to append two vectors in c++

C++
std::vector<int> AB = A;
AB.insert(AB.end(), B.begin(), B.end());
Source

Also in C++: