Questions tagged [istream-view]
2 questions
9
votes
1 answer
How can I collect an istream_view into a container?
I was trying to implement a generic reduction operation for my extensions for c++20's ranges that would collect the elements of any range into a given container. To achieve that, I first created a dummy type for extracting a template template…

Fureeish
- 12,533
- 4
- 32
- 62
4
votes
1 answer
What is an istream_view and when do I use one?
Apparently, C++20 has a new std::istream-related construct: std::istream_view. The cppreference page on it is a stub right now†. So, what is a "view of an istream" and what can I use it for?
† - Ok, technically it redirects to a page about…

einpoklum
- 118,144
- 57
- 340
- 684