---
name: "std::pmr_memory_resource"
section: "3cxx"
platform: "linux"
package: "libstdc++-12-doc"
version: "12.4.0-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/std::pmr_memory_resource/3cxx"
---

# std::pmr\_memory\_resource(3cxx)

Class memory\_resource.

## NAME

std::pmr::memory\_resource - Class memory\_resource.

## SYNOPSIS

`#include <memory_resource>`

Inherited by std::pmr::monotonic\_buffer\_resource, **std::pmr::synchronized\_pool\_resource**, and **std::pmr::unsynchronized\_pool\_resource**.

### Public Member Functions

**memory\_resource** (const **memory\_resource** &)=**default**\
 **void** \* **allocate** (size\_t **\_\_bytes**, size\_t **\_\_alignment**=\_S\_max\_align)\
 **void** **deallocate** (**void** \*\_\_p, size\_t **\_\_bytes**, size\_t **\_\_alignment**=\_S\_max\_align)\
 bool **is\_equal** (const **memory\_resource** &\_\_other) const noexcept\
 **memory\_resource** & **operator=** (const **memory\_resource** &)=**default**\

## Detailed Description

Class memory\_resource.

## Author

Generated automatically by Doxygen for libstdc++ from the source code.
