From: Greg Colvin (gcolvin_at_[hidden])
Date: 1999-08-17 11:45:28
From: Valentin Bonnard <Bonnard.V_at_[hidden]>
> Andy Glew wrote:
> > Greg Colvin 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.
I was just thinking of a skipping iterator, and a separate
function to remove null weak_ptrs from a container.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk