#include <iostream>
#include <vector>
using namespace std;
int main()
{
vector<string> svec = { "hello", "world" };
vector<string>::iterator it = svec.insert(svec.begin() + 1, "river");
cout << *it << endl;
for (auto elem : svec)
cout << elem << " ";
cout << endl;
return 0;
}
container insert() demo
最新推荐文章于 2022-11-12 12:08:34 发布