Boost logo

Boost :

Subject: Re: [boost] request for interest: stable vector
From: joaquin_at_[hidden]
Date: 2008-09-17 04:56:58


Ion Gaztañaga escribió:
> JOAQUIN M. LOPEZ MUÑOZ wrote:
>
>> I recently wrote up the implementation of a *stable* vector,
>> a container mimicking the interface of std::vector except that
>> it provides iterator and reference stability at the expense of
>> losing memory contiguity:
>>
>> http://bannalia.blogspot.com/2008/09/introducing-stablevector.html
>>
[...]
> Yes. I'would be interested in an Interprocess-friendly version ;-).
> Since it's a node-based container and competes against std::vector and
> its well known performance, I think stable_vector is a perfect candidate
> to use a bit more unconventional allocators like these (using burst
> allocation for nodes and reallocation for the index vector):
>
> http://www.drivehq.com/web/igaztanaga/allocplus/
>

Ion, where can I grab allocplus source code?

> And if I'm not wrong, unlike std::vector, stable_vector could support
> non-copyable and non-movable objects.
>

Well, to do that it would have to implement emplace, but that's the only
requisite.

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