23 Ranges library [ranges]

23.8 Range adaptors [range.adaptors]

23.8.8 Split view [range.split] Overview [range.split.overview]

split_­view takes a View and a delimiter, and splits the View into subranges on the delimiter.
The delimiter can be a single element or a View of elements.
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*
end example