24 Ranges library [ranges]

24.7 Range adaptors [range.adaptors]

24.7.8 Split view [range.split]

24.7.8.1 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.
[Example
:
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
]