check if vector list is empty or not c++ code example Example: if vector is empty c++ v.empty() // returns true if vector v is empty