Lines Matching defs:rhs
235 bool operator==(const scoped_refptr<U>& rhs) const {
236 return ptr_ == rhs.get();
240 bool operator!=(const scoped_refptr<U>& rhs) const {
241 return !operator==(rhs);
245 bool operator<(const scoped_refptr<U>& rhs) const {
246 return ptr_ < rhs.get();
283 bool operator==(const scoped_refptr<T>& lhs, const U* rhs) {
284 return lhs.get() == rhs;
288 bool operator==(const T* lhs, const scoped_refptr<U>& rhs) {
289 return lhs == rhs.get();
298 bool operator==(std::nullptr_t null, const scoped_refptr<T>& rhs) {
299 return !static_cast<bool>(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);
318 bool operator!=(std::nullptr_t null, const scoped_refptr<T>& rhs) {
319 return !operator==(null, rhs);
328 void swap(scoped_refptr<T>& lhs, scoped_refptr<T>& rhs) noexcept {
329 lhs.swap(rhs);