|
Boost : |
From: Valentin Bonnard (Bonnard.V_at_[hidden])
Date: 1999-08-17 08:52:06
Andy Glew wrote:
> > Well, as we have been discussing, you can either wrap up all the
> > containers, or write just one wrapper for any iterator. I'll add
> > the latter to my to-do list for weak_ptr.
>
> The latter - writing one wrapper good for any method that returns
> an iterator - is what I would like, and what I do not know how to do.
Coming back to your problem, what you want isn't exactly
a skipping iterator, but one which modifies the container.
It's a very dangerous thing, as it will invalidate other
iterators to the same container.
Beside the technical details of how to make writing such
wrapper easy, I am not sure that I understand what you want
to do.
I think we should discuss what you want to do before
trying to find a way to do it. For example, begin with
the specification or examples of use of the live/cache
container.
-- Valentin Bonnard
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk