Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/memory/memory resource"

From cppreference.com
< cpp‎ | memory
m (Notes: + feature test macro)
m (Notes)
Line 32: Line 32:
 
{{feature test macro|__cpp_lib_memory_resource}}
 
{{feature test macro|__cpp_lib_memory_resource}}
  
{{langlinks|es|ja|zh}}
+
{{langlinks|es|ja|ru|zh}}

Revision as of 04:41, 19 July 2023

 
 
Dynamic memory management
Uninitialized memory algorithms
Constrained uninitialized memory algorithms
Allocators
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)



 
 
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.

Contents

Member functions

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

Non-member-functions

(removed in C++20)
compare two memory_resources
(function) [edit]

Notes

Feature-test macro Value Std Feature
__cpp_lib_memory_resource