#include "axom/config.hpp"
#include <cstring>
#include <cstdlib>
|
|
void | axom::setDefaultAllocator (int allocatorID) |
| Sets the default memory allocator to use. More...
|
|
int | axom::getDefaultAllocatorID () |
| Returns the ID of the current default allocator. More...
|
|
template<typename T > |
T * | axom::allocate (std::size_t n, int allocID=getDefaultAllocatorID()) noexcept |
| Allocates a chunk of memory of type T. More...
|
|
template<typename T > |
void | axom::deallocate (T *&p) noexcept |
| Frees the chunk of memory pointed to by the supplied pointer, p. More...
|
|
template<typename T > |
T * | axom::reallocate (T *p, std::size_t n) noexcept |
| Reallocates the chunk of memory pointed to by the supplied pointer. More...
|
|
void | axom::copy (void *dst, void *src, std::size_t numbytes) noexcept |
| Copies memory from the source to the destination. More...
|
|