Base class of object allocators that implements make. Use curiously recurring template pattern.
More...
#include <memory.h>
|
template<typename T , typename... Args> |
ObjectPtr< T > | make_object (Args &&... args) |
| Make a new object using the allocator. More...
|
|
template<typename ArrayType , typename ElemType , typename... Args> |
ObjectPtr< ArrayType > | make_inplace_array (size_t num_elems, Args &&... args) |
|
template<typename Derived>
class tvm::runtime::ObjAllocatorBase< Derived >
Base class of object allocators that implements make. Use curiously recurring template pattern.
- Template Parameters
-
Derived | The derived class. |
◆ make_inplace_array()
template<typename Derived >
template<typename ArrayType , typename ElemType , typename... Args>
- Template Parameters
-
ArrayType | The type to be allocated. |
ElemType | The type of array element. |
Args | The constructor signature. |
- Parameters
-
num_elems | The number of array elements. |
args | The arguments. |
◆ make_object()
template<typename Derived >
template<typename T , typename... Args>
Make a new object using the allocator.
- Template Parameters
-
T | The type to be allocated. |
Args | The constructor signature. |
- Parameters
-
The documentation for this class was generated from the following file: