
1 Oct
2008
1 Oct
'08
2:15 p.m.
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? - Thanks, Rob.