Boost logo

Boost Users :

Subject: Re: [Boost-users] [proto]: Adding functions to the lazy vector example
From: Eric Niebler (eric_at_[hidden])
Date: 2010-11-02 18:29:49


On 11/2/2010 11:56 AM, Noman wrote:
> I am experimenting with the lazy vector example. I want to add the functions to
> the example but not in the LazyVector class. Like for example I want to add a
> function INC which increments each element of the vector and returns a vector.
> How can I add this to the example?

Do you mean you want INC to *only* work on vector terminals, or should
it work also on complex expressions? Should it evaluate eagerly or lazily?

-- 
Eric Niebler
BoostPro Computing
http://www.boostpro.com

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net