---
name: "std::pmr_memory_resource"
section: "3"
platform: "linux"
package: "gcc"
version: "16.2.1+r23+gd564253eb6c8-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/std::pmr_memory_resource"
---

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

Class memory\_resource.

## NAME

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

## SYNOPSIS

\#include \<memory\_resource\>

Inherited by **std::pmr::monotonic\_buffer\_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.

**Since**

C++17

## Author

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