14 #if !defined (_INC_MSCLR_AUTO_HANDLE)
16 #ifndef __cplusplus_cli
17 #error ERROR: msclr libraries are not compatible with /clr:oldSyntax
26 template<
typename _element_type>
55 template<
typename _other_type>
70 template<
typename _other_type>
102 template<
typename _other_type>
115 void reset( _element_type ^ _new_ptr )
162 template<
typename _element_type>
166 _left.
swap( _right );
171 #define _INC_MSCLR_AUTO_HANDLE
auto_handle(auto_handle< _other_type >%_right)
Definition: auto_handle.h:56
void swap(auto_gcroot< _element_type > &_left, auto_gcroot< _element_type > &_right)
Definition: auto_gcroot.h:240
_element_type release()
Definition: auto_handle.h:132
System::String _safe_bool
Definition: safebool.h:37
bool operator==(_detail_class::_safe_bool)
auto_handle< _element_type > operator=(auto_handle< _element_type >%_right)
Definition: auto_handle.h:62
void reset(_element_type^_new_ptr)
Definition: auto_handle.h:115
auto_handle< _element_type > operator=(auto_handle< _other_type >%_right)
Definition: auto_handle.h:71
static _safe_bool const _safe_false
Definition: safebool.h:39
bool operator!=(_detail_class::_safe_bool)
auto_handle()
Definition: auto_handle.h:38
static _safe_bool const _safe_true
Definition: safebool.h:38
auto_handle(auto_handle< _element_type >%_right)
Definition: auto_handle.h:50
~auto_handle()
Definition: auto_handle.h:140
void swap(auto_handle< _element_type >%_right)
Definition: auto_handle.h:108
Definition: auto_handle.h:27
auto_handle(_element_type^_ptr)
Definition: auto_handle.h:44
bool operator!()
Definition: auto_handle.h:96
bool valid()
Definition: auto_handle.h:150
_element_type m_handle
Definition: auto_handle.h:158
void reset()
Definition: auto_handle.h:127
_element_type operator->()
Definition: auto_handle.h:84