Boost logo

Boost :

Subject: Re: [boost] Any real-world need for static_cast_iterator, const_cast_iterator, dynamic_cast_iterator?
From: Scott McMurray (me22.ca+boost_at_[hidden])
Date: 2009-02-03 11:51:35


On Tue, Feb 3, 2009 at 01:30, Nigel Stewart <nigels_at_[hidden]> wrote:
> In addition to the specialised adaptors in the boost iterator
> library, does it make any sense to add:
>
> static_cast_iterator
> const_cast_iterator
> dynamic_cast_iterator
>
> ...iterator adaptors providing embedded static_cast<>, const_cast<>
> or dynamic_cast<> when dereferencing? (Rather than just throwing
> them straight on the scrap heap...)
>

It seems like they would just be transform_iterator with
ll_whichever_cast. Is providing them separately worth it?


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