Split
vector<string> split(string str, char delimiter) { vector<string> tokens; stringstream ss(str); string token; while (getline(ss, token, delimiter)) { tokens.push_back(token); } return tokens;}sahithyan/utils
Skip to contentvector<string> split(string str, char delimiter) { vector<string> tokens; stringstream ss(str); string token; while (getline(ss, token, delimiter)) { tokens.push_back(token); } return tokens;}