1 #ifndef AMREX_DATA_ALLOCATOR_H_
2 #define AMREX_DATA_ALLOCATOR_H_
3 #include <AMReX_Config.H>
16 [[nodiscard]]
void*
alloc (std::size_t sz)
const noexcept {
20 void free (
void* pt)
const noexcept {
A virtual base class for objects that manage their own dynamic memory allocation.
Definition: AMReX_Arena.H:100
virtual void free(void *pt)=0
A pure virtual function for deleting the arena pointed to by pt.
virtual void * alloc(std::size_t sz)=0
Definition: AMReX_Amr.cpp:49
Arena * The_Arena()
Definition: AMReX_Arena.cpp:609
Definition: AMReX_DataAllocator.H:9
DataAllocator() noexcept=default
Arena * arena() const noexcept
Definition: AMReX_DataAllocator.H:24
void free(void *pt) const noexcept
Definition: AMReX_DataAllocator.H:20
Arena * m_arena
Definition: AMReX_DataAllocator.H:10
void * alloc(std::size_t sz) const noexcept
Definition: AMReX_DataAllocator.H:16
Definition: AMReX_DataAllocator.H:29
DataDeleter() noexcept=default
void operator()(void *pt) const noexcept
Definition: AMReX_DataAllocator.H:34
Arena * arena() const noexcept
Definition: AMReX_DataAllocator.H:33
Arena * m_arena
Definition: AMReX_DataAllocator.H:30