src/core/lib/gprpp/ref_counted_ptr.h
// TODO(roth): This method exists solely as a transition mechanism to allow
// us to pass a ref to idiomatic C code that does not use WeakRefCountedPtr<>.
// Once all of our code has been converted to idiomatic C++, this
// method should go away.
This method exists solely as a transition mechanism to allow
us to pass a ref to idiomatic C code that does not use WeakRefCountedPtr<>.
Once all of our code has been converted to idiomatic C++, this
method should go away.
This method exists solely as a transition mechanism to allow us to pass a ref to idiomatic C code that does not use WeakRefCountedPtr< > . Once all of our code has been converted to idiomatic C ++ this method should go away .
T* release() {
    T* value = value_;
    value_ = nullptr;
    return value;
  }
T * release ( ) { T * value = value_ ; value_ = nullptr ; return value ; }
TODO(roth): This method exists solely as a transition mechanism to allow
us to pass a ref to idiomatic C code that does not use WeakRefCountedPtr<>.
TODO ( roth ) : This method exists solely as a transition mechanism to allow us to pass a ref to idiomatic C code that does not use WeakRefCountedPtr< > .