#include
#include
#include
#include
void split(std::vector& lst, const std::string& str, const std::string& separator = " ") {
std::stringstream strr(str);
std::string word;
while (std::getline(strr, word, separator[0])) {
lst.push_back(word);
}
}
int main() {
std::vector words;
std::string text = "This is a test string";
std::string sep = " ";
split(words, text, sep);
for (const auto& word : words) {
std::cout