CppCMS
|
a smart pointer similar to std::unique_ptr but it is non-copyable and underlying object has same constness as the pointer itself (not like in ordinary pointer). More...
#include <booster/booster/hold_ptr.h>
Public Member Functions | |
hold_ptr (hold_ptr const &other)=delete | |
hold_ptr const & | operator= (hold_ptr const &other)=delete |
hold_ptr (T *v) | |
hold_ptr (hold_ptr &&other) | |
hold_ptr & | operator= (hold_ptr &&other) |
T const * | get () const |
T * | get () |
T const & | operator* () const |
T & | operator* () |
T const * | operator-> () const |
T * | operator-> () |
T * | release () |
void | reset (T *p=0) |
void | swap (hold_ptr &other) |
a smart pointer similar to std::unique_ptr but it is non-copyable and underlying object has same constness as the pointer itself (not like in ordinary pointer).