Boost logo

Boost Users :

From: Nat Goodspeed (ngoodspeed_at_[hidden])
Date: 2005-07-26 17:44:17

> -----Original Message-----
> From: boost-users-bounces_at_[hidden] [mailto:boost-users-
> bounces_at_[hidden]] On Behalf Of David Abrahams
> Sent: Tuesday, July 26, 2005 5:41 PM
> To: boost-users_at_[hidden]
> Subject: Re: [Boost-users] [Iterators] Change in transform_iterator
> from1.31 to1.32?
> Nat, what you are doing looks _really_ inefficient. The result of
> make_transform_iterator is some iterator type that's very different
> from, but convertible to, your const_iterator type. Going through
> that extra layer using boost::function means you are doing a lot of
> extra copying -- and potentially, dynamic memory allocation --
> whenever you ask for an iterator.

[Nat] Truth to tell, I'm looking forward to when you introduce the
equivalent of transform_iterator in Boost.Range... that will remove a
lot of redundant declaration! ;-)

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at