5 Dec
2004
5 Dec
'04
5:23 p.m.
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