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.
All Allocator and PMR Facilities
A compact index of allocator-aware types, polymorphic memory resources, and allocation-adjacent standard facilities.
Use reference pages to confirm names, categories, nearby facilities, and the constraints that matter before writing or reviewing code.
std::allocator<T>allocator_traitsstd::pmr::memory_resourcestd::pmr::polymorphic_allocator<T>std::pmr::monotonic_buffer_resourcestd::pmr::unsynchronized_pool_resourcestd::pmr::synchronized_pool_resourcestd::pmr::new_delete_resourcestd::pmr::null_memory_resourcestd::pmr::stringstd::pmr::vectorstd::pmr::unordered_mapstd::pmr::* container aliasesstd::allocate_sharedstd::allocate_shared_for_overwrite<memory><new>#include <memory>
int main() {
auto owner = std::make_unique<int>(42);
auto shared = std::make_shared<int>(*owner);
owner.reset();
return *shared;
}