Lines Matching defs:operator
144 // object, simply use the assignment operator:
212 T& operator*() const {
217 T* operator->() const {
222 scoped_refptr& operator=(T* p) { return *this = scoped_refptr(p); }
224 // Unified assignment operator.
225 scoped_refptr& operator=(scoped_refptr r) noexcept {
232 explicit operator bool() const { return ptr_ != nullptr; }
235 bool operator==(const scoped_refptr<U>& rhs) const {
240 bool operator!=(const scoped_refptr<U>& rhs) const {
241 return !operator==(rhs);
245 bool operator<(const scoped_refptr<U>& rhs) const {
283 bool operator==(const scoped_refptr<T>& lhs, const U* rhs) {
288 bool operator==(const T* lhs, const scoped_refptr<U>& rhs) {
293 bool operator==(const scoped_refptr<T>& lhs, std::nullptr_t null) {
298 bool operator==(std::nullptr_t null, const scoped_refptr<T>& rhs) {
303 bool operator!=(const scoped_refptr<T>& lhs, const U* rhs) {
304 return !operator==(lhs, rhs);
308 bool operator!=(const T* lhs, const scoped_refptr<U>& rhs) {
309 return !operator==(lhs, rhs);
313 bool operator!=(const scoped_refptr<T>& lhs, std::nullptr_t null) {
314 return !operator==(lhs, null);
318 bool operator!=(std::nullptr_t null, const scoped_refptr<T>& rhs) {
319 return !operator==(null, rhs);
323 std::ostream& operator<<(std::ostream& out, const scoped_refptr<T>& p) {