Boost logo

Boost :

Subject: Re: [boost] [pool] Definition of a static_pool ?
From: Hite, Christopher (Christopher.Hite_at_[hidden])
Date: 2012-04-25 06:21:06


Étienne wrote:
> This is very convenient but there usage cases where the pool should not perform any dynamic memory allocation, i.e. the maximum number of simultaneously required buffers is known at initialization. I have hence defined a simple class 'static_pool' (see below), which
> (i) allocate all requested buffers at initialization;
> (ii) fails (returns null) if more buffers are being asked for at runtime.
>
> Does such a class has its place within the Boost Pool library ?

Sounds much like singleton_pool.

Chris


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