| 75 | } |
| 76 | |
| 77 | T* release() { |
| 78 | T* ptr = ptr_; |
| 79 | ptr_ = nullptr; |
| 80 | return ptr; |
| 81 | } |
| 82 | |
| 83 | // Resets the RefPtr from a pointer. This is an ownership transfer operation, |
| 84 | // and the caller has to own a valid reference to ptr (unless ptr is nullptr). |
no outgoing calls
no test coverage detected