Lines Matching defs:operator

77         ValueType& operator*() const { ASSERT(m_ptr); return *m_ptr; }
78 PtrType operator->() const { ASSERT(m_ptr); return m_ptr; }
80 ValueType& operator[](std::ptrdiff_t i) const;
82 bool operator!() const { return !m_ptr; }
84 // This conversion operator allows implicit conversion to bool but not to other integer types.
86 operator UnspecifiedBoolType() const { return m_ptr ? &OwnPtr::m_ptr : 0; }
88 OwnPtr& operator=(const PassOwnPtr<T>&);
89 OwnPtr& operator=(std::nullptr_t) { clear(); return *this; }
90 template<typename U> OwnPtr& operator=(const PassOwnPtr<U>&);
96 OwnPtr& operator=(OwnPtr&&);
97 template<typename U> OwnPtr& operator=(OwnPtr<U>&&);
107 OwnPtr& operator=(const OwnPtr&);
112 template<typename U> bool operator==(const OwnPtr<U>&) const { COMPILE_ASSERT(!sizeof(U*), OwnPtrs_should_never_be_equal); return false; }
113 template<typename U> bool operator!=(const OwnPtr<U>&) const { COMPILE_ASSERT(!sizeof(U*), OwnPtrs_should_never_be_equal); return false; }
114 template<typename U> bool operator==(const PassOwnPtr<U>&) const { COMPILE_ASSERT(!sizeof(U*), OwnPtrs_should_never_be_equal); return false; }
115 template<typename U> bool operator!=(const PassOwnPtr<U>&) const { COMPILE_ASSERT(!sizeof(U*), OwnPtrs_should_never_be_equal); return false; }
152 template<typename T> inline typename OwnPtr<T>::ValueType& OwnPtr<T>::operator[](std::ptrdiff_t i) const
160 template<typename T> inline OwnPtr<T>& OwnPtr<T>::operator=(const PassOwnPtr<T>& o)
169 template<typename T> template<typename U> inline OwnPtr<T>& OwnPtr<T>::operator=(const PassOwnPtr<U>& o)
191 template<typename T> inline OwnPtr<T>& OwnPtr<T>::operator=(OwnPtr<T>&& o)
201 template<typename T> template<typename U> inline OwnPtr<T>& OwnPtr<T>::operator=(OwnPtr<U>&& o)
218 template<typename T, typename U> inline bool operator==(const OwnPtr<T>& a, U* b)
223 template<typename T, typename U> inline bool operator==(T* a, const OwnPtr<U>& b)
228 template<typename T, typename U> inline bool operator!=(const OwnPtr<T>& a, U* b)
233 template<typename T, typename U> inline bool operator!=(T* a, const OwnPtr<U>& b)