1、C++字符串分割:vector<string> pathToVector(string thePath) //对string路径按进行分割{ stringstream ss(thePath); string tmp; vector<string> result; while (getline(ss, tmp, )) result.emplace_back(tmp); return result;}2、C++ 11对的push_back, push_front, insert 增加了新的用法,与之对应的是emplace_back,emplace_front, emplace.