ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
A functor to resize memory allocation. More...
#include <memory.h>
Public Member Functions | |
void | operator() (T *&arr, const size_t &size, const char *record_in=nullptr) |
Resize memory allocation. | |
A functor to resize memory allocation.
T | Floating-point type of the allocated memory. |
Device | Device type where the memory will be allocated. |
void container::kernels::resize_memory< T, Device >::operator() | ( | T *& | arr, |
const size_t & | size, | ||
const char * | record_in = nullptr |
||
) |
Resize memory allocation.
dev | Device where the memory will be allocated. |
arr | Pointer to the allocated memory. |
size | New size of the allocated memory. |
record_in | Optional message to record the resize operation. |