From Jason Turner
Watch on YouTube

Summary

This episode explores how to create custom allocator-aware types in C++ that can properly work with the Polymorphic Memory Resource (PMR) library. Jason demonstrates the steps required to make a custom class correctly propagate allocator information to its members, implementing necessary constructors and using declarations to properly handle allocator state. The tutorial highlights common pitfalls like maintaining proper initialization across multiple constructors and ensuring allocator propagation through the type hierarchy.

Resources

Tags