> Date: Mon, 18 Jul 2011 18:43:57 -0500
> From: mpbecey7gu@snkmail.com
> To: boost-users@lists.boost.org
> 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 :)

http://www.boost.org/doc/libs/1_47_0/libs/range/doc/html/range/reference/adaptors/reference/transformed.html

Regards,
Nate.