Boost logo

Boost :

From: JOAQUIN M. LOPEZ MUÑOZ (joaquin_at_[hidden])
Date: 2008-07-19 04:53:16


________________________________________
De: boost-bounces_at_[hidden] [boost-bounces_at_[hidden]] En nombre de Simon Richter [Simon.Richter_at_[hidden]]
Enviado el: sábado, 19 de julio de 2008 2:34
Para: boost_at_[hidden]
Asunto: [boost] passing ranges or output iterators to virtual functions
>
> Hi,
>
> I've written two small class templates that basically "work for me" in
> the current state, but are not as generic as I'd like.
>
> The task at hand: pass a list of objects through a function call with
> fixed signature (such as a virtual function) without exposing the actual
> container type used.
>
> I'd like to get a bit of feedback on whether these might be a worthwhile
> addition to Boost (after some cleanup and implementation of features
> missing so far).

Hi Simon, I think you should take a look at adobe::any_iterator from the
Adobe Source Libraries:

http://stlab.adobe.com/classadobe_1_1any__iterator.html

This class addresses the scenario you're interested in in a completely
general fashion (all iterator categories supported, etc.)

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo


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