Answers for "merge n vectors c++"

C++
4

c++ vector combine two vectors

vector1.insert(vector1.end(), vector2.begin(), vector2.end());
Posted by: Guest on February-14-2021
0

how to concatenate two vectors in c++

vector<int> a, b;
//fill with data
b.insert(b.end(), a.begin(), a.end());
Posted by: Guest on August-07-2021

Browse Popular Code Answers by Language