8 #ifndef BOOSTER_UTIL_COPY_PTR_H 9 #define BOOSTER_UTIL_COPY_PTR_H 28 ptr_(other.ptr_ ?
new T(*other.ptr_) : 0)
55 T
const *
get()
const {
return ptr_; }
56 T *
get() {
return ptr_; }
58 T
const &operator *()
const {
return *ptr_; }
59 T &operator *() {
return *ptr_; }
60 T
const *operator->()
const {
return ptr_; }
61 T *operator->() {
return ptr_; }
62 T *release() { T *tmp=ptr_; ptr_=0;
return tmp; }
a smart pointer similar to std::unique_ptr but it copies underlying object on pointer copy instead of...
Definition: copy_ptr.h:22
Booster library namespace. The library that implements Boost Like API in ABI backward compatible way...
Definition: application.h:23