string str{"the quick brown fox"}; split_view sentence{str, ' '}; for (auto word : sentence) { for (char ch : word) cout << ch; cout << '*'; } // The above prints: the*quick*brown*fox*