17 #ifndef ATLAS_ALLOC_CPP_H 18 #define ATLAS_ALLOC_CPP_H 77 template <
class T>
static inline void NVM_Destroy(T *ptr)
106 template <
class T>
static inline void NVM_Destroy_Array(T *ptr)
113 char *delete_ptr =
reinterpret_cast<char*
>(ptr) -
sizeof(
size_t);
114 size_t count = *
reinterpret_cast<size_t*
>(delete_ptr);
115 for (
int i=count-1; i>=0; --i) (ptr+i)->~T();
Definition: pregion.hpp:31
int NVM_IsInRegion(void *ptr, size_t sz)
Determines if a memory location is within a region.
Definition: pregion_mgr_api.cpp:111
Atlas::PRegion * NVM_GetRegion(uint32_t rid)
Get a handle to a persistent region.
Definition: pregion_mgr_api.cpp:116
Definition: atlas_alloc_cpp.hpp:21
void nvm_delete(void *ptr)
Definition: pregion_mgr_api.cpp:83