mxnet
|
Helper trait class for easy allocation and deallocation. More...
#include <object_pool.h>
Static Public Member Functions | |
template<typename... Args> | |
static T * | New (Args &&...args) |
Create new object. More... | |
static void | Delete (T *ptr) |
Delete an existing object. More... | |
Helper trait class for easy allocation and deallocation.
|
static |
Delete an existing object.
ptr | The pointer to delete. |
Make sure the pointer to delete is allocated from this pool.
|
static |
Create new object.