All Allocator and PMR Facilities

All Allocator and PMR Facilities

A compact index of allocator-aware types, polymorphic memory resources, and allocation-adjacent standard facilities.

How to use this reference page

Use reference pages to confirm names, categories, nearby facilities, and the constraints that matter before writing or reviewing code.

  • Scan the top of the page first to identify the primary types, functions, or algorithm families involved.
  • Use the nearby-page links when your question is really about a companion header, related algorithm family, or broader subsystem.
  • Validate tricky behavior with a small compileable example before relying on memory for details like invalidation, ordering, allocation, or lifetime rules.

All Allocator and PMR Facilities

Core allocator vocabulary

Polymorphic memory resources

PMR aliases and common users

Adjacent allocation facilities

Practical rules

Example in practice

#include <memory>

int main() {
    auto owner = std::make_unique<int>(42);
    auto shared = std::make_shared<int>(*owner);
    owner.reset();
    return *shared;
}