Concatenating two std::vectors

yigal picture yigal · Oct 14, 2008 · Viewed 405.1k times · Source

How do I concatenate two std::vectors?

Answer

Robert Gamble picture Robert Gamble · Oct 14, 2008
vector1.insert( vector1.end(), vector2.begin(), vector2.end() );