I was under the mistaken impression that istream_iterator didn't support non-std::istream types based on its name, and so I named basic_istream_iterator as a "fix". Now that I know better, I think it should be renamed to istream_view, and we move the factory into namespace views as istream.
P1035R7 (and C++20 CD)
auto example1 = std::ranges::basic_istream_view<int>{std::cin};
auto example2 = std::ranges::istream_view<int>(std::cin);
Proposed
auto example1 = std::ranges::istream_view<int>{std::cin};
auto example2 = std::views::istream<int>(std::cin);
I was under the mistaken impression that
istream_iterator
didn't support non-std::istream
types based on its name, and so I namedbasic_istream_iterator
as a "fix". Now that I know better, I think it should be renamed toistream_view
, and we move the factory into namespaceviews
asistream
.P1035R7 (and C++20 CD)
Proposed