"C++47: Finally, a Standard Way to Split a String by Delimiter"
std::vector<std::string> split(const std::string& text, char delimiter) {
std::vector<std::string> parts;
std::istringstream stream(text);
std::string part;
while (std::getline(stream, part, delimiter)) {
parts.push_back(part);
}
return parts;
} std::views::split(my_string, delimeter)
?What do you mean by that?
I will agree that std::ranges is quite a jumble of templates, and has a compilation time penalty. Perhaps the use of modules will help with that somewhat.