|
HAMR
The Heterogeneous Accelerator Memory Resource
|
a deleter for arrays allocated with new More...
#include <hamr_new_allocator.h>
Public Member Functions | |
| new_deleter (T *ptr, size_t n) | |
| void | operator() (T *ptr) |
a deleter for arrays allocated with new
| hamr::new_deleter< T >::new_deleter | ( | T * | ptr, |
| size_t | n | ||
| ) |
constructs the deleter
| [in] | ptr | the pointer to the array to delete |
| [in] | n | the number of elements in the array |
| void hamr::new_deleter< T >::operator() | ( | T * | ptr | ) |
deletes the array
| [in] | ptr | the pointer to the array to delete. must be the same as that passed during construction. |