std::pmr::memory_resource

From cppreference.com
< cpp‎ | memory
 
 
Dynamic memory management
Smart pointers
(C++11)
(C++11)
(C++11)
(until C++17)
(C++11)
(C++23)
Allocators
Memory resources
pmr::memory_resource
(C++17)
Uninitialized storage
Uninitialized memory algorithms
Constrained uninitialized memory algorithms
Garbage collection support
(C++11)(until C++23)
(C++11)(until C++23)
(C++11)(until C++23)
(C++11)(until C++23)
(C++11)(until C++23)
(C++11)(until C++23)
Miscellaneous
(C++20)
(C++11)
(C++11)
 
 
Defined in header <memory_resource>
class memory_resource;
(since C++17)

The class std::pmr::memory_resource is an abstract interface to an unbounded set of classes encapsulating memory resources.

Member functions

(implicitly declared)
constructs a new memory_resource
(public member function)
(destructor)
[virtual]
destructs an memory_resource
(virtual public member function)
operator=
(implicitly declared)
Implicitly declared copy assignment operator
(public member function)
Public member functions
allocates memory
(public member function)
deallocates memory
(public member function)
compare for equality with another memory_resource
(public member function)
Private member functions
[virtual]
allocates memory
(virtual private member function)
deallocates memory
(virtual private member function)
[virtual]
compare for equality with another memory_resource
(virtual private member function)

Non-member-functions

(removed in C++20)
compare two memory_resources
(function)

Notes

Feature-test macro: __cpp_lib_memory_resource