|
Boost Users : |
From: Jeff Garland (jeff_at_[hidden])
Date: 2004-12-05 12:23:41
On Sat, 04 Dec 2004 21:30:36 +0100, Jean-Eric Cuendet wrote
> Hi,
> I need the following for our Linux C++ soft:
> - Create a HeapSpace of FixedSize (say 1Mb)
> - Allocate FixedSize piece of memory (always alloc 16 bytes from
> this heap for ex.) - Return NULL if no more space in the HeapSpace -
> Delete them. - Release the memory when all pieces are deleted
>
> Is there a way to do exactly that with Boost?
Check out http://www.boost.org/libs/pool/doc/index.html. Not sure it does all
you want exactly, but close.
Jeff
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net