libstdc++: std::pmr::memory_resource Class Reference

libstdc++

std::pmr::memory_resource Class Referenceabstract
Utilities » Memory » Polymorphic memory resources

`#include <memory_resource>`

Inheritance diagram for std::pmr::memory_resource:
[legend]

## 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

Definition at line 63 of file memory_resource.h.

## Member Function Documentation

## ◆ allocate()

void * std::pmr::memory_resource::allocate | ( | size_t | __bytes,
|  | size_t | __alignment = _S_max_align )
| inlinenodiscard

Definition at line 76 of file memory_resource.h.

## ◆ deallocate()

void std::pmr::memory_resource::deallocate | ( | void * | __p,
|  | size_t | __bytes,
|  | size_t | __alignment = _S_max_align )
| inline

Definition at line 81 of file memory_resource.h.

## ◆ is_equal()

bool std::pmr::memory_resource::is_equal | ( | const memory_resource & | __other | ) | const
| inlinenodiscardnoexcept

Definition at line 87 of file memory_resource.h.

The documentation for this class was generated from the following file:

- memory_resource.h