Boost Users :
Subject: Re: [Boost-users] Implementing Range Adaptor or "transformation" iterator
From: Nathan Ridge (zeratul976_at_[hidden])
Date: 2011-07-18 21:00:43
> Date: Mon, 18 Jul 2011 18:43:57 -0500
> From: mpbecey7gu_at_[hidden]
> To: boost-users_at_[hidden]
> Subject: [Boost-users] Implementing Range Adaptor or "transformation" iterator
> I see the documentation "doc/html/range/reference/extending/method_3/method_3_1.html" and
> want to do something like that. The Adaptor I want to write will transform the elements
> and provide a lazy transformed view.
> So, I need the return range to be a pair of transformed iterators, and a transform
> iterator works just like the underlying iterator only the * operator will apply my
> function to the value as it fetches it.
> But, it seems to me that there should be something like that already. Is there something
> I'm overlooking in STL or in some other Boost library?
There is something you are overlooking in the Boost.Range library itself :)
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