35 template <
typename Type>
56 template<
typename That>
58 :
ptr(static_cast<Type*>(that.
ptr))
75 operator Type *()
const {
return const_cast<Type*
>(
ptr); }
76 operator bool()
const {
return ptr != 0; }
80 Type *
get()
const {
return const_cast<Type*
>(
ptr); }
~ComPtr()
Definition: comptr.h:43
ComPtr(Type *ptr)
Definition: comptr.h:41
bool operator<=(const ComPtr &other) const
Definition: comptr.h:67
Type * ptr
Definition: comptr.h:83
ComPtr & operator=(const ComPtr ©)
Definition: comptr.h:44
Type ** output_variable()
Definition: comptr.h:81
ComPtr(const ComPtr ©)
Definition: comptr.h:42
bool operator==(const ComPtr &other) const
Definition: comptr.h:64
void clear()
Definition: comptr.h:79
bool operator!=(const ComPtr &other) const
Definition: comptr.h:65
bool operator<(const ComPtr &other) const
Definition: comptr.h:66
Type * get() const
Definition: comptr.h:80
bool operator>(const ComPtr &other) const
Definition: comptr.h:68
bool is_null() const
Definition: comptr.h:78
Type *const operator->() const
Definition: comptr.h:73
ComPtr(const ComPtr< That > &that)
Definition: comptr.h:57
bool operator>=(const ComPtr &other) const
Definition: comptr.h:69
ComPtr()
Definition: comptr.h:40
ComPtr.
Definition: comptr.h:38