##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::experimental::pmr::memory_resource

From cppreference.com
< cpp‎ | experimental

| Merged into ISO C++ The functionality described on this page was merged into the mainline ISO C++ standard as of 3/2016, see `std::pmr::memory_resource` (since C++17)

Defined in header `<experimental/memory_resource>` |  |
class memory_resource; |  | (library fundamentals TS)

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

### [edit] Member functions

(constructor) (implicitly declared) | constructs a new `memory_resource` (public member function) [edit]
(destructor) [virtual] | destructs an `memory_resource` (virtual public member function) [edit]
operator= (implicitly declared) | Implicitly declared copy assignment operator (public member function) [edit]
##### Public member functions
allocate | allocates memory (public member function) [edit]
deallocate | deallocates memory (public member function) [edit]
is_equal | compare for equality with another `memory_resource` (public member function) [edit]
##### Protected member functions
do_allocate [virtual] | allocates memory (virtual protected member function) [edit]
do_deallocate [virtual] | deallocates memory (virtual protected member function) [edit]
do_is_equal [virtual] | compare for equality with another `memory_resource` (virtual protected member function) [edit]

### [edit] Non-member-functions

operator==operator!= | compare two `memory_resource`s (function) [edit]

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/experimental/memory_resource&oldid=84478"