diff options
Diffstat (limited to 'src/core/lib/gprpp')
-rw-r--r-- | src/core/lib/gprpp/ref_counted_ptr.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/core/lib/gprpp/ref_counted_ptr.h b/src/core/lib/gprpp/ref_counted_ptr.h index 7b64ec56bd..91ca8eae63 100644 --- a/src/core/lib/gprpp/ref_counted_ptr.h +++ b/src/core/lib/gprpp/ref_counted_ptr.h @@ -37,7 +37,9 @@ class RefCountedPtr { // If value is non-null, we take ownership of a ref to it. template <typename Y> - explicit RefCountedPtr(Y* value) { value_ = value; } + explicit RefCountedPtr(Y* value) { + value_ = value; + } // Move support. RefCountedPtr(RefCountedPtr&& other) { @@ -128,7 +130,9 @@ class RefCountedPtr { } template <typename Y> - bool operator==(const Y* other) const { return value_ == other; } + bool operator==(const Y* other) const { + return value_ == other; + } bool operator==(std::nullptr_t) const { return value_ == nullptr; } @@ -138,7 +142,9 @@ class RefCountedPtr { } template <typename Y> - bool operator!=(const Y* other) const { return value_ != other; } + bool operator!=(const Y* other) const { + return value_ != other; + } bool operator!=(std::nullptr_t) const { return value_ != nullptr; } |