Swap the pointer with the other one.
| 175 | |
| 176 | //! Swap the pointer with the other one. |
| 177 | void Swap(TWeakPtr& other) noexcept |
| 178 | { |
| 179 | DoSwap(T_, other.T_); |
| 180 | #if defined(_tsan_enabled_) |
| 181 | DoSwap(RefCounter_, other.RefCounter_); |
| 182 | #endif |
| 183 | } |
| 184 | |
| 185 | //! Acquire a strong reference to the pointee and return a strong pointer. |
| 186 | TIntrusivePtr<T> Lock() const noexcept |