|
|
@ -79,15 +79,11 @@ class RefCountedPtr { |
|
|
|
bool operator==(const RefCountedPtr& other) const { |
|
|
|
bool operator==(const RefCountedPtr& other) const { |
|
|
|
return value_ == other.value_; |
|
|
|
return value_ == other.value_; |
|
|
|
} |
|
|
|
} |
|
|
|
bool operator==(T* other) const { |
|
|
|
bool operator==(T* other) const { return value_ == other; } |
|
|
|
return value_ == other; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
bool operator!=(const RefCountedPtr& other) const { |
|
|
|
bool operator!=(const RefCountedPtr& other) const { |
|
|
|
return value_ != other.value_; |
|
|
|
return value_ != other.value_; |
|
|
|
} |
|
|
|
} |
|
|
|
bool operator!=(T* other) const { |
|
|
|
bool operator!=(T* other) const { return value_ != other; } |
|
|
|
return value_ != other; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private: |
|
|
|
private: |
|
|
|
T* value_ = nullptr; |
|
|
|
T* value_ = nullptr; |
|
|
|