concatenation of vectors code example Example: how to concatenate vectors in c++ vector1.insert( vector1.end(), vector2.begin(), vector2.end() );