Summary
This episode explores C++17's Polymorphic Memory Resources (PMR) in-depth, following up on a previous introduction. Jason demonstrates how PMR can provide significant performance improvements for standard containers by reducing heap allocations through custom memory resources like monotonic_buffer_resource. He explains PMR's limitations, practical use cases, and why it's not a magic bullet but a powerful tool when used appropriately for scenarios where memory allocation patterns are predictable.
Related C++ Standard Sections
This episode covers topics found in these sections of the C++ standard:
-
[mem.res]71% match -
[list]40% match