C++函数返回空的vector

return vector<string>();

或者:(C++11)

return {};

参考:https://stackoverflow.com/questions/24175507/return-an-empty-vector-c

原文地址:https://www.cnblogs.com/mrlonely2018/p/14653284.html