#include <AMReX_GpuAllocators.H>
Public Member Functions | |
constexpr | PolymorphicArenaAllocator ()=default |
constexpr | PolymorphicArenaAllocator (Arena *a_arena) |
void | setArena (Arena *a_ar) noexcept |
Public Member Functions inherited from amrex::ArenaAllocatorBase< T, PolymorphicArenaWrapper > | |
constexpr | ArenaAllocatorBase ()=default |
constexpr | ArenaAllocatorBase (PolymorphicArenaWrapper a_ar) |
T * | allocate (std::size_t n) |
FatPtr< T > | allocate_in_place (T *p, std::size_t nmin, std::size_t nmax) |
T * | shrink_in_place (T *p, std::size_t n) |
void | deallocate (T *ptr, std::size_t) |
Arena * | arena () const noexcept |
Additional Inherited Members | |
Public Types inherited from amrex::ArenaAllocatorBase< T, PolymorphicArenaWrapper > | |
using | value_type = T |
using | arena_wrapper_type = PolymorphicArenaWrapper |
|
constexprdefault |
|
inlineexplicitconstexpr |
|
inlinenoexcept |