Boost:Pool
lastmod 2018-08-17created 2015-06-233 edits
Memory pool manager.
Types
Boost's memory pool comes in 4 types.
pool
A simple memory pool. It only does malloc and free. As the comment says, if declared locally it is used locally. Returns Null on allocation failure.
singleton_pool
Singleton memory pool. A memory pool that supports the singleton pattern. Unless explicitly freed, the memory remains until termination.
pool_alloc
A memory pool that uses exceptions. It is built on the singleton memory pool interface and supports the STL Allocator class.
object_pool
Like a typical memory pool, it allocates the type received as a template argument in chunks, and also calls constructors and destructors. Likewise, it returns Null on failure.
See also
Favorite site
Pages that link here