|
template<typename T, typename Deleter = std::default_delete<T>> |
static _unique< T, Deleter > | make_unique_with_deleter (T *ptr, Deleter deleter=Deleter{}) |
| Creates unique_ptr from raw pointer and a deleter.
|
|
template<typename T> |
static _< T > | manage (T *raw) |
| Delegates memory management of the raw pointer T* raw to the shared pointer, which is returned.
|
|
template<typename T, typename Deleter> |
static _< T > | manage (T *raw, Deleter deleter) |
| Delegates memory management of the raw pointer T* raw to the shared pointer, which is returned.
|
|
template<typename T> |
static _unique< T > | unique (T *raw) |
| Delegates memory management of the raw pointer T* raw to the unique pointer, which is returned.
|
|
template<typename T> |
static _< T > | fake (T *raw) |
| Creates fake shared pointer to T* raw with empty destructor, which does nothing. It's useful when some function accept shared pointer but you have only raw one.
|
|