Boost logo

Boost :

Subject: Re: [boost] [iterator] could non-small predicates/functors be stored as boost::optional<T> to avoid double construction?
From: Arno Schödl (aschoedl_at_[hidden])
Date: 2008-09-04 08:09:33


> Hi,

> The headline pretty much says it all. Take transform iterator. When the
> predicate is not trivial, we also have a redundant construction of the
> object in the end iterator. Maybe that could be removed?

> best regards

> -Thorsten

I guess that would be restricted to forward iterators.

Arno

--
Dr. Arno Schoedl · aschoedl_at_[hidden] 
Technical Director 
 
think-cell Software GmbH · Invalidenstr. 34 · 10115 Berlin, Germany 
http://www.think-cell.com · phone +49-30-666473-10 · toll-free (US) +1-800-891-8091
Directors: Dr. Markus Hannebauer, Dr. Arno Schoedl · Amtsgericht Charlottenburg, HRB 85229

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