|
Boost : |
Subject: Re: [boost] Lazy list
From: David Abrahams (dave_at_[hidden])
Date: 2009-01-18 14:17:43
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_at_[hidden]> 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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk