
1 Oct
2008
1 Oct
'08
8:22 p.m.
Robert Jones skrev:
Is there any mechanism to have the boost.range algorithms iterate over a stream?
Given
typedef std::istream_iterator<int> in;
std::for_each( in(std::cin), in(), std::cout << (_1 * 3) << " " );
can I write this using range algorithms?
I expect the range_ex library in the review queue will provide istream_range<T> etc. Maybe it is already there in the files section. -Thorsten