From: John Torjo (john.lists_at_[hidden])
Date: 2004-05-18 00:23:13
>>Yes, there is.
>>rtl (Range Templates Library) has a generate_iterator.
>>You have a generator, and a stopper. From these, you create an input
>>iterator sequence. The stopper tells you when you've reached end.
>>// input iterator sequence - 20 fibonacci numbers
>>// input iterator sequence - fibonacci numbers up to 200
>>You can use it like this:
>>rng::copy( generated(fibonacci(), gen_upto(200)),
>>The rtl (and the generate* examples) can be found at:
>The RTL approach looks very interesting. There is a lot to digest here.
>What is the state of maturity of this code? Would you consider it ready for
I would think so. I've used it successfully in 6 projects so far,
3 of them being > 100000 lines of code each.
-- John Torjo Freelancer -- john_at_[hidden] -- http://www.torjo.com/logview/ - viewing/filtering logs is just too easy!
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk