MemoryPool icon indicating copy to clipboard operation
MemoryPool copied to clipboard

An easy to use and efficient memory pool allocator written in C++.

Results 10 MemoryPool issues
Sort by recently updated
recently updated
newest added

when i use the padding function from this code,i found that the summary of address and padding mod align bytes can`t be zero sometimes.Should it be a problem? I google...

I might be wrong but shouldn't https://github.com/cacay/MemoryPool/blob/1ab4683e38f24940afb397b06a2d86814d898e63/C-11/MemoryPool.tcc#L104 be ```cpp operator delete(reinterpret_cast(curr), BlockSize); ``` to delete the whole block?

C-11/MemoryPool.h should include type_traits and utility as it depend on them.

When compiling with the highest warning level `-Wall -Werror -Wextra` I receive these error messages regarding unused variables. May be in the next release you could add this code in...

Hi, I want to use the pool allocator for thousands of small arrays: typedef uint16_t elementType; typedef elementType\* arrayP; typedef elementType array_2[2]; MemoryPool mMemPool_2; `arrayP foo;` `foo = reinterpret_cast(mMemPool_2->newElement());` `...`...

Hi, I was reading the testcases and something that piqued my curiosity greatly was a mention that MemoryPool would be really useful with multiple linked lists. I'd really love to...

```c++ #include "../src/memory_pool.h" // #include "../tmp/MemoryPool.h" // #include "../src/allocate.h" #include #include #include std::vector v; // std::vector v; int main(void) { for (int i=0; i

I want to ask a question :when the current block is ran out, we need to allocate a new block. But in the new block, why there is no need...

in MemoryPool.tcc 59 line ![Image](https://github.com/user-attachments/assets/7ce808e6-ac70-4eb7-ae19-0e5fb8ce5fcb)