7 #ifndef BOOST_LOCALE_HOLD_PTR_H 8 #define BOOST_LOCALE_HOLD_PTR_H 10 #include <boost/locale/config.hpp> 43 T
const *
get()
const {
return ptr_; }
47 T *
get() {
return ptr_; }
69 T *
release() { T *tmp=ptr_; ptr_=0;
return tmp; }
hold_ptr()
Definition: hold_ptr.hpp:26
T const * operator->() const
Definition: hold_ptr.hpp:60
T * get()
Definition: hold_ptr.hpp:47
T const & operator *() const
Definition: hold_ptr.hpp:52
T const * get() const
Definition: hold_ptr.hpp:43
hold_ptr(T *v)
Definition: hold_ptr.hpp:30
a smart pointer similar to std::auto_ptr but it is non-copyable and the underlying object has the sam...
Definition: hold_ptr.hpp:19
~hold_ptr()
Definition: hold_ptr.hpp:35
void reset(T *p=0)
Definition: hold_ptr.hpp:74
T & operator *()
Definition: hold_ptr.hpp:56
T * release()
Definition: hold_ptr.hpp:69
void swap(hold_ptr &other)
Swap two pointers.
Definition: hold_ptr.hpp:80
T * operator->()
Definition: hold_ptr.hpp:64