Subject: Re: [boost] request for interest: stable vector
From: Giovanni Piero Deretta (gpderetta_at_[hidden])
Date: 2008-09-17 08:19:38
On Wed, Sep 17, 2008 at 2:01 PM, Herve Bronnimann
> Joaquin: it just occurred to me (from the thought that your stable vector
> could also be implemented as a wrapper on top of a vector of share ptrs
> where the vector iteratir stores an index and reference to vector; it's not
> as good impl as yours but also provides stable iters and refs) that you can
> provide an additional fctn release() to "export" your object from vector,
> with interface similar to erase and returning a shared ptr owning the node
> and pointing to the object within.
Or better, on top of ptr_vector. Export would return an auto_ptr.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk