[pool] Does Simple Segregated Storage support arrays?

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? Boris

Boris wrote:
The documentation at file://localhost/C:/Boost/libs/pool/doc/concepts.html says: "Each of
Sorry, the link should have been http://www.boost.org/libs/pool/doc/concepts.html. Boris

On 6/23/06, Boris <boriss@web.de> wrote:
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 elsewhere.
-- Cory Nelson http://www.int64.org
participants (2)
-
Boris
-
Cory Nelson