MemoryPool
🔗link: MemoryPool
MemoryPool
- This is a C++ memorypool template class implementation, which is simple to use, convenient and fast. It can replace the original
new\malloc
,delete\free
operations, and also I provide a singleton class memorypool template class implementation - This memory pool ensures multi-threaded safety (by locking at the allocate\deallocate), and uses perfect forwarding and variable parameter templates to support the creation of any type of memory pool
- This memorypool is developed based on the C++11 standard. The code refers to the cacay/MemoryPool, muduo memorypool and boost/memorypool