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.
Related C++ Standard Sections
This episode covers topics found in these sections of the C++ standard:
-
[mem.res]71% match -
[allocator.requirements]64% match -
[allocator.uses.construction]59% match -
[mem.res.syn]54% match -
[mem.poly.allocator.class.general]54% match -
[polymorphic]53% match -
[default.allocator.general]52% match -
[polymorphic.assign]50% match -
[util.smartptr.shared.create]50% match -
[polymorphic.general]48% match - + 7 more related sections