8 #ifndef BOOST_LOCALE_HOLD_PTR_H 
    9 #define BOOST_LOCALE_HOLD_PTR_H 
   42         T 
const *
get() 
const { 
return ptr_; }
 
   46         T *
get() { 
return ptr_; }
 
   68         T *
release() { T *tmp=ptr_; ptr_=0; 
return tmp; }
 
hold_ptr()
Definition: hold_ptr.hpp:25
T const & operator*() const 
Definition: hold_ptr.hpp:51
hold_ptr(T *v)
Definition: hold_ptr.hpp:29
a smart pointer similar to std::auto_ptr but it is non-copyable and the underlying object has the sam...
Definition: hold_ptr.hpp:18
T const * operator->() const 
Definition: hold_ptr.hpp:59
~hold_ptr()
Definition: hold_ptr.hpp:34
void reset(T *p=0)
Definition: hold_ptr.hpp:73
T * release()
Definition: hold_ptr.hpp:68
void swap(hold_ptr &other)
Swap two pointers. 
Definition: hold_ptr.hpp:79
T * operator->()
Definition: hold_ptr.hpp:63