8 #ifndef BOOSTER_UTIL_COPY_PTR_H 9 #define BOOSTER_UTIL_COPY_PTR_H 28 ptr_(other.ptr_ ?
new T(*other.ptr_) : 0)
43 T
const *
get()
const {
return ptr_; }
44 T *
get() {
return ptr_; }
46 T
const &operator *()
const {
return *ptr_; }
47 T &operator *() {
return *ptr_; }
48 T
const *operator->()
const {
return ptr_; }
49 T *operator->() {
return ptr_; }
50 T *release() { T *tmp=ptr_; ptr_=0;
return tmp; }
a smart pointer similar to std::auto_ptr but it copies underlying object on pointer copy instead of m...
Definition: copy_ptr.h:22
Booster library namespace. The library that implements Boost Like API in ABI backward compatible way...
Definition: application.h:23