c++ how to make vector empty and size 1 code example Example: c++ how to return an empty vector return vector<int>(); //or return{};