采用accumulate函数
#include <vector>
#include <string>
#include <numeric> // 函数所在的库
#include <iostream>
using namespace std;
int main()
{
string strData;
vector<string> vec = { "hello world" };
strData = accumulate(vec.begin(), vec.end(), strData);
cout << strData << endl;
}