Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

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));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #insert #vector #vector
ADD COMMENT
Topic
Name
5+1 =