Acquire a strong reference to the pointee and return a strong pointer.
| 184 | |
| 185 | //! Acquire a strong reference to the pointee and return a strong pointer. |
| 186 | TIntrusivePtr<T> Lock() const noexcept |
| 187 | { |
| 188 | return T_ && RefCounter()->TryRef() |
| 189 | ? TIntrusivePtr<T>(T_, false) |
| 190 | : TIntrusivePtr<T>(); |
| 191 | } |
| 192 | |
| 193 | bool IsExpired() const noexcept |
| 194 | { |
no test coverage detected