Custom deleter that returns memory to an Arena.
More...
#include <AMReX_DataAllocator.H>
Custom deleter that returns memory to an Arena.
Falls back to The_Arena() when no arena is supplied.
◆ DataDeleter() [1/2]
| amrex::DataDeleter::DataDeleter |
( |
| ) |
|
|
defaultnoexcept |
◆ DataDeleter() [2/2]
| amrex::DataDeleter::DataDeleter |
( |
Arena * |
ar | ) |
|
|
inlinenoexcept |
Construct with an explicit arena ar.
◆ arena()
| Arena * amrex::DataDeleter::arena |
( |
| ) |
const |
|
inlinenoexcept |
Return the stored arena, or The_Arena() if none was set.
◆ operator()()
| void amrex::DataDeleter::operator() |
( |
void * |
pt | ) |
const |
|
inlinenoexcept |
Return the allocation at pt to the arena.
◆ m_arena
| Arena* amrex::DataDeleter::m_arena = nullptr |
Stored arena pointer (may be null).
The documentation for this struct was generated from the following file: