Boost logo

Boost :

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.
>>For instance:
>>// input iterator sequence - 20 fibonacci numbers
>>generated(fibonacci(), gen_n(20))
>>// input iterator sequence - fibonacci numbers up to 200
>>generated(fibonacci(), gen_upto(200))
>>You can use it like this:
>>rng::copy( generated(fibonacci(), gen_upto(200)),
>>std::ostream_iterator<int>(std::cout," "));
>>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
-- john_at_[hidden]
-- - viewing/filtering logs is just too easy!

Boost list run by bdawes at, gregod at, cpdaniel at, john at