how to check vector is empty or not in c++ code example Example: c++ how to return an empty vector return vector<int>(); //or return{};