|
Medial Code Documentation
|
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 | |
| ThreadlocalSharedPtr (std::nullptr_t other) | |
| constructor from nullptr | |
| ThreadlocalSharedPtr (const ThreadlocalSharedPtr< T > &other) | |
| copy constructor | |
| ThreadlocalSharedPtr (ThreadlocalSharedPtr< T > &&other) | |
| move constructor | |
| ~ThreadlocalSharedPtr () | |
| destructor | |
| ThreadlocalSharedPtr< T > & | operator= (ThreadlocalSharedPtr< T > &&other) |
| move assignment | |
| ThreadlocalSharedPtr< T > & | operator= (const ThreadlocalSharedPtr< T > &other) |
| copy assignment | |
| bool | operator== (std::nullptr_t other) const |
| check if nullptr | |
| T * | get () const |
| void | reset () |
| reset the pointer to nullptr. | |
| 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. | |
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 |
constructor from nullptr
| other | the nullptr type |
|
inline |
copy constructor
| other | another pointer. |
|
inline |
move constructor
| other | another pointer. |
|
inlinestatic |
create a new space from threadlocal storage and return it.
| Args | the arguments. |
| args | The input argument |
|
inline |
|
inline |
|
inline |
|
inline |
copy assignment
| other | another object to be assigned. |
|
inline |
move assignment
| other | another object to be assigned. |
|
inline |