30 #ifndef AVT_VMBAPI_SHAREDPOINTER_IMPL_H 31 #define AVT_VMBAPI_SHAREDPOINTER_IMPL_H 126 throw std::bad_alloc();
155 T *pObject =
dynamic_cast<T*
>(rSharedPointer.
m_pObject);
263 template<
class T,
class T2>
269 template <
class T1,
class T2>
272 return sp1.
get() == sp2.
get();
275 template <
class T1,
class T2>
278 return sp1.
get() != sp2.
get();
283 #endif //AVT_VMBAPI_SHAREDPOINTER_IMPL_H
virtual long use_count() const
ref_count & operator=(const ref_count &rRefCount)
AVT::VmbAPI::ref_count_base * m_pRefCount
bool operator!=(const shared_ptr< T1 > &sp1, const shared_ptr< T2 > &sp2)
shared_ptr & operator=(const shared_ptr &rSharedPointer)
virtual long use_count() const =0
static void swap(T2 &rValue1, T2 &rValue2)
ref_count(const ref_count &rRefCount)
bool operator==(const shared_ptr< T1 > &sp1, const shared_ptr< T2 > &sp2)
shared_ptr< T > dynamic_pointer_cast(const shared_ptr< T2 > &rSharedPointer)