Copy constructor
Destructor
Allocates item of requested type from the pool.
Allocates item from the pool.
Available number of items / blocks that can be allocated
Returns previously allocated item back to the pool.
Returns previously allocated item back to the pool.
Implementation of "Fast Efficient Fixed-Size Memory Pool" as described in this article: www.thinkmind.org/download.php?articleid=computation_tools_2012_1_10_80006
Implementation of "Fast Efficient Fixed-Size Memory Pool" as described in this article.
It can work as a pool for single templated type or generic pool with a fixed block size (so one can alloc various types with size less or equal to the block size).
Minimal block size is 4B as data in blocks are used internally to form a linked list of the blocks.
Internally it uses refcounted payload so can be copied around as needed.