From: Boris (boriss_at_[hidden])
Date: 2006-06-23 13:48:39
Cory Nelson wrote:
> On 6/23/06, Boris <boriss_at_[hidden]> wrote:
>> The documentation at
>> file://localhost/C:/Boost/libs/pool/doc/concepts.html says: "Each of
>> the chunks in any given block are always the same size. This is the
>> fundamental restriction of Simple Segregated Storage: you cannot ask
>> for chunks of different sizes."
>> Okay, but can I ask for more than one chunk of the same size - for
>> an array?
> With the boost interface you can use malloc_n(), though freelists
> aren't meant for arrays. In fact, malloc_n() will fail if it doesn't
> find an obviously contiguous chunk. Common usage of a freelist will
> make the freelist non-contiguous so you probably want to look
Thanks for your answer! I'm using boost::pool currently which doesn't
provide malloc_n(). There is only ordered_malloc(n). But as I understand now
from your answer it won't help much either as there is no support for arrays
in Boost Pool. Is this correct?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk