concatenate vectors c++ code example Example: vector concat c++ vector1.insert( vector1.end(), vector2.begin(), vector2.end() );