Namespaces
Variants
Actions

std::pmr::memory_resource

From cppreference.com
< cpp‎ | memory
 
C++
 
Memory management library
(exposition only*)
Allocators
Uninitialized memory algorithms
Constrained uninitialized memory algorithms
Memory resources
pmr::memory_resource
(C++17)
Uninitialized storage (until C++20)
(until C++20*)
(until C++20*)

Garbage collector support (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)
(C++11)(until C++23)
 
std::pmr::memory_resource
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

[edit] 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]

[edit] Non-member-functions

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

[edit] Notes

Feature-test macro Value Std Feature
__cpp_lib_memory_resource 201603L (C++17) std::pmr::memory_resource

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant