|
Boost : |
Subject: Re: [boost] [pool] Objects of varying sizes
From: Klaim - Joël Lamotte (mjklaim_at_[hidden])
Date: 2012-06-25 19:48:43
Hi,
don't look at the object_pool, look at pool. It provide only allocation and
destruction methods, given a size at runtime.
That way you can wrap it with a template function that give the size of the
object you want to create to the pool for it to allocate memory for you.
Joel Lamotte
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk