Boost logo

Boost :

Subject: Re: [boost] [fusion] repetitive_view
From: Joel de Guzman (joel_at_[hidden])
Date: 2009-04-11 20:53:05


Stjepan Rajko wrote:
> Hello,
>
> I just noticed `repetitive_view` in boost/fusion/view. It doesn't
> appear to be documented, but judging from the test, it appears that
> repetitive_view<Sequence> is an infinite repetition of the elements of
> the sequence. Is that correct?
>
> I would find this extremely useful, but I'm slightly put off by the
> lack of documentation and the fact that it results in a (not currently
> officially supported?) infinite sequence.
>
> What is the status of repetitive_view? Is it safe to use?
>
> Stjepan
>
> P.S. we have discussed infinite sequences before:
>
> http://archives.free.net.ph/message/20080716.025311.1b54b65e.da.html

That is Dan's baby. You should probably ask him. I think a reason
why it's undocumented is that the basic concepts of a "sequence"
requires a size. An infinite view does not have a size. We'll
have to refine the concepts to take in infinite views. I do like
your lazy_sequence idea. Please coordinate with Dan on how to
proceed with these infinite views.

Regards,

-- 
Joel de Guzman
http://www.boostpro.com
http://spirit.sf.net

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk