- Hands-On High Performance Programming with Qt 5
- Marek Krajewski
- 74字
- 2021-07-02 13:54:00
Conclusion
With that, we've finished our overview of custom allocator types. We won't present any example implementations here, because there are enough of them already. If you are using Boost in your project, then you'll be glad to hear that it has a fixed-memory manager library called Pool (https://www.boost.org/doc/libs/1_68_0/libs/pool/doc/html/index.html).
Howard Hinnant implemented an on-stack allocator called short_alloc (https://howardhinnant.github.io/stack_alloc.html). These are high-quality implementations; use them if you need a custom allocator.