Summary
Jason provides a comprehensive overview of C++17's Polymorphic Memory Resources (PMR), explaining the different standard memory resources including monotonic_buffer_resource, synchronized_pool_resource, unsynchronized_pool_resource, null_memory_resource, and new_delete_resource. He demonstrates how these can be combined to create powerful memory management solutions, including memory tracking, allocation logging, and efficient memory pools with upstream resources. The examples show how PMR can help catch stray allocations and tightly control memory usage.
Related C++ Standard Sections
This episode covers topics found in these sections of the C++ standard:
-
[mem.res]73% match -
[mem.res.pool]61% match -
[mem.res.pool.overview]61% match -
[mem.res.monotonic.buffer.general]60% match -
[mem.res.monotonic.buffer]59% match -
[mem.res.syn]57% match -
[mem.poly.allocator.class.general]56% match -
[mem.poly.allocator.class]54% match -
[mem.poly.allocator.ctor]53% match -
[mem.res.class.general]51% match - + 5 more related sections