25 const std::string& str,
const std::string& delim)
27 auto delim_pos = str.find(delim);
28 if (delim_pos == std::string::npos) {
30 "Delimiter \"" + delim +
"\" not found in string \"" + str +
"\"");
32 return std::make_pair(str.substr(0, delim_pos), str.substr(delim_pos + 1));