MCPcopy Create free account
hub / github.com/catboost/catboost / Swap

Method Swap

library/cpp/yt/memory/weak_ptr.h:177–183  ·  view source on GitHub ↗

Swap the pointer with the other one.

Source from the content-addressed store, hash-verified

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

Callers 6

ExchangeMethod · 0.45
CompareAndSwapMethod · 0.45
TWeakPtrMethod · 0.45
TWeakPtrClass · 0.45
ResetMethod · 0.45
TESTFunction · 0.45

Calls 1

DoSwapFunction · 0.50

Tested by

no test coverage detected