|
mxnet
|
a shared pointer like type that allocate object from a threadlocal object pool. This object is not thread-safe but can be faster than shared_ptr in certain usecases. More...
#include <memory.h>

Public Member Functions | |
| ThreadlocalSharedPtr () | |
| default constructor More... | |
| ThreadlocalSharedPtr (std::nullptr_t other) | |
| constructor from nullptr More... | |
| ThreadlocalSharedPtr (const ThreadlocalSharedPtr< T > &other) | |
| copy constructor More... | |
| ThreadlocalSharedPtr (ThreadlocalSharedPtr< T > &&other) | |
| move constructor More... | |
| ~ThreadlocalSharedPtr () | |
| destructor More... | |
| ThreadlocalSharedPtr< T > & | operator= (ThreadlocalSharedPtr< T > &&other) |
| move assignment More... | |
| ThreadlocalSharedPtr< T > & | operator= (const ThreadlocalSharedPtr< T > &other) |
| copy assignment More... | |
| bool | operator== (std::nullptr_t other) const |
| check if nullptr More... | |
| T * | get () const |
| void | reset () |
| reset the pointer to nullptr. More... | |
| bool | unique () const |
| T * | operator* () const |
| T * | operator-> () const |
Static Public Member Functions | |
| template<typename... Args> | |
| static ThreadlocalSharedPtr< T > | Create (Args &&...args) |
| create a new space from threadlocal storage and return it. More... | |
a shared pointer like type that allocate object from a threadlocal object pool. This object is not thread-safe but can be faster than shared_ptr in certain usecases.
| T | the data type. |
|
inline |
default constructor
|
inline |
constructor from nullptr
| other | the nullptr type |
|
inline |
copy constructor
| other | another pointer. |
|
inline |
move constructor
| other | another pointer. |
|
inline |
destructor
|
inlinestatic |
create a new space from threadlocal storage and return it.
| Args | the arguments. |
| args | The input argument |
|
inline |
|
inline |
|
inline |
|
inline |
move assignment
| other | another object to be assigned. |
|
inline |
copy assignment
| other | another object to be assigned. |
|
inline |
check if nullptr
|
inline |
reset the pointer to nullptr.
|
inline |
1.8.11