C++函数返回空的vector

 

return vector<string>();

或者:(C++11)

return {};

 

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

posted @ 2021-04-13 15:04  略略略——  阅读(3861)  评论(0编辑  收藏  举报