stdex
Additional custom or not Standard C++ covered algorithms
|
Helper class for returning pointers to std::unique_ptr. More...
#include <stdex/memory.hpp>
Public Member Functions | |
ref_unique_ptr (std::unique_ptr< T, D > &owner) | |
Takes ownership of the pointer. | |
ref_unique_ptr (ref_unique_ptr< T, D > &&other) | |
Moves object. | |
~ref_unique_ptr () | |
Returns ownership of the pointer. | |
operator T** () | |
Operator for pointer-to-pointer parameters by value use-cases. | |
operator T*& () | |
Operator for reverence-to-pointer parameters by value use-cases. | |
Protected Attributes | |
std::unique_ptr< T, D > & | m_own |
Original owner of the pointer. | |
T * | m_ptr |
Pointer. | |
Helper class for returning pointers to std::unique_ptr.
|
inline |
Takes ownership of the pointer.
[in,out] | owner | Object to attach helper to |
|
inline |
Moves object.
[in,out] | other | Source object |
|
inline |
Operator for reverence-to-pointer parameters by value use-cases.
|
inline |
Operator for pointer-to-pointer parameters by value use-cases.