Boost logo

Boost :

From: Reid Sweatman (reids_at_[hidden])
Date: 1999-08-17 15:56:52


> From: Reid Sweatman <reids_at_[hidden]>
> > You're basically just describing a sentinel; why not
> actually implement one,
> > and make the container one larger on construction, with the
> end condition
> > being that you skipped to the sentinel?
>
> That would be fine for some sort of cache_container, but might be a
> clumsy precondition to put on an ordinary container that happens to
> contain weak_ptrs.

I think that would depend on how you implemented the interator wrapper,
wouldn't it? It could certainly be made to remain hidden, without too much
overhead.


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