Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2001-08-30 14:31:37


I see in the documentation for boost::pool:

``pool is a fast memory allocator, and guarantees proper alignment of all
allocated chunks.''

Since pool does not know the type of object that is being allocated, I
presume this means that it always uses the maximal alignment for each chunk?

I am allocating an array of objects with an initial reference count. Is
there a solution in Boost.Pool for allocating these with minimum permissible
padding? I don't see one.

Thanks,
Dave


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