Located in file: MEL.hpp
MEL::MemAlloc(const Aint size)¶Allocate a block of memory for ‘size’ number of type T.
size - The number of elements of type T to allocate
MEL::MemAlloc(const Aint size, const T &val)¶Allocate a block of memory for ‘size’ number of type T and assign a default value.
size - The number of elements of type T to allocate
val - The value to set each element equal to
MEL::MemConstruct(Args&&... args)¶Allocate a single object of type T and construct it with the set of varadic arguments.
args - The set of varadic arguments to construct the object with
MEL::MemFree(T *&ptr)¶Free a pointer allocated with MPI_Alloc or the MEL equivilant functions.
ptr - The pointer to free
MEL::MemFree(T0 &d0, T1 &d1, Args&&... args)¶Free the varadic set of pointers provided.
d0 - The first pointer to free
d1 - The second pointer to free
args - The varadic set of remaining pointers to free
MEL::MemDestruct(T *&ptr, const Aint len = 1)¶Call the destructor for each element of the given array and then free the memory.
ptr - The pointer to the memory to be destructed
len - The length of the array