Daily bit(e) of C++ | std::views::split, std::views::lazy_split
Daily bit(e) of C++ #447, The two C++20 split-by-delimiter views: std::views::split and std::views::lazy_split.
The C++20 std::views::split and std::views::lazy_split produce a view over subranges obtained by splitting a range using a provided delimiter.
std::views::lazy_split offers lazy processing; however, as a consequence, the modelled range is input/forward only.
std::views::split will maintain the underlying range category.