1 # mempool.h |
1 # Memory Pool |
2 |
2 |
3 A memory pool is providing an allocator implementation that automatically deallocates the memory upon its destruction. |
3 A memory pool is providing an allocator implementation that automatically deallocates the memory upon its destruction. |
4 It also allows you to register destructor functions for the allocated memory, which are automatically called before |
4 It also allows you to register destructor functions for the allocated memory, which are automatically called before |
5 the memory is deallocated. |
5 the memory is deallocated. |
6 Additionally, you may also register _independent_ destructor functions within a pool in case some external library |
6 Additionally, you may also register _independent_ destructor functions within a pool in case some external library |