CppCon 2017: Bob Steagall “How to Write a Custom Allocator”

— Presentation Slides, PDFs, Source Code and other presenter materials are available at: — You’d like to improve the performance of your application with regard to memory management, and you believe this can be accomplished by writing a custom allocator. But where do you start? Modern C brings many improvements to the standard allocator model, but with those improvements come several issues that must be addressed when designing a new allocator. This talk will provide guidance on how to write custom allocators for the C 14/C 17 standard containers. It will cover the requirements specified by the standard, and will describe the facilities provided by the standard to support the new allocator model and allocator-aware containers. We’ll look at the issues of allocator identity and propagation, and examine their implications for standard library users, standard library implementers, and custom allocator implementers. We’ll see how a container uses its al
Back to Top