26 #ifndef INCLUDED_intrusive_ptr_COM_h_GUID_BB97FC94_B320_4FB9_5379_940B0A631CA6 27 #define INCLUDED_intrusive_ptr_COM_h_GUID_BB97FC94_B320_4FB9_5379_940B0A631CA6 30 #if !defined(COM_NO_WINDOWS_H) && !defined(_WINDOWS_) 31 #define COM_NO_WINDOWS_H 34 #include <boost/intrusive_ptr.hpp> 40 inline void intrusive_ptr_add_ref(IUnknown* ptr)
45 inline void intrusive_ptr_release(IUnknown* ptr)
69 : m_ref(ref), m_ptr(
nullptr), m_addRef(addRef)
78 m_ref = boost::intrusive_ptr<T>(m_ptr, m_addRef);
107 return reinterpret_cast<void**
>(&m_ptr);
114 boost::intrusive_ptr<T>& m_ref;
130 template <
typename T>
139 using detail::AttachPtr;
141 #endif // INCLUDED_intrusive_ptr_COM_h_GUID_BB97FC94_B320_4FB9_5379_940B0A631CA6 Definition: newuoa.h:1888
Definition: intrusive_ptr_COM.h:56