Concatenating two std::vectors


Question

How do I concatenate two std::vectors?

1
598
2/8/2016 11:04:47 PM

vector1.insert( vector1.end(), vector2.begin(), vector2.end() );
649
10/14/2008 3:48:28 PM

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon