Boost logo

Boost Users :

Subject: Re: [Boost-users] [iterator] - does there exist an opposite of Function Output Iterator?
From: David Abrahams (dave_at_[hidden])
Date: 2009-02-05 22:47:25


on Thu Feb 05 2009, Michael Fawcett <michael.fawcett-AT-gmail.com> wrote:

> Thanks, as always, Steven.
>
> While clever, Boost.Lamba seems like overkill for this extremely
> simple task. Is it your experience that it would generate code as
> efficient as what I originally posted?

Should be easily as efficient.

> Do you feel that such functionality doesn't belong in Boost.Iterator?

I definitely think it doesn't. Boost.Iterator is about constructing
iterators. You're constructing a function. Boost.Lambda or Bind or
Pheonix are the right tools for that job.

> I think it nicely complements function_output_iterator.

Then maybe function_output_iterator ought to be moved into the lambda
lib ;-)

-- 
Dave Abrahams
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