return an empty vector c++ [duplicate] May 20, 2023 by Tarik Just return vector<string>(); Or use list initialization (since C++11) return {};