
on Sun Jan 18 2009, "Dean Michael Berris" <mikhailberis-AT-gmail.com> wrote:
On Sun, Jan 18, 2009 at 8:14 PM, Sebastian Redl <sebastian.redl@getdesigned.at> wrote: [snip]
Also, lazy lists are really an idiom from languages that are very comfortable with lists, i.e. mostly functional languages (Haskell, for example). The same idiom is, I believe, really not as practical in C++ and other imperative languages. Modern C++ uses iterator ranges as the primary concept for generic handling of finite and infinite sequences, and there already are function-backed input iterators. The second concept used is input streams.
There are already function-backed input iterators in Boost?
I know there are function-backed output iterators, but not function-backed input iterators.
http://www.boost.org/doc/libs/1_37_0/libs/utility/generator_iterator.htm -- Dave Abrahams BoostPro Computing http://www.boostpro.com