Lines Matching defs:ResourceHolder
859 template< class T > struct ResourceHolder struct
861 typedef typename T::destructor_type destructor_type;
863 T m_value;
865 explicit ResourceHolder (T const & value = T()) : m_value (value) {} in ResourceHolder() function
866 ~ResourceHolder() { reset(); } in ~ResourceHolder()
868 T & get() { return m_value; } in get()
869 T const & get() const { return m_value; } in get()
871 void set (T const & value) { m_value = value; } in set()
872 void reset (T const & value = T()) in reset()
879 T release() in release()
886 ResourceHolder (ResourceHolder & rhs) in ResourceHolder() argument
890 ResourceHolder & operator= (ResourceHolder & rhs) in operator =()