Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/catboost/catboost
/ Shared
Method
Shared
util/generic/ptr.h:1181–1183 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1179
}
1180
1181
inline bool Shared() const noexcept {
1182
return T_.RefCount() > 1;
1183
}
1184
1185
inline void Swap(TCowPtr& r) noexcept {
1186
T_.Swap(r.T_);
Callers
2
TestCopyOnWritePtr1
Method · 0.80
TestCopyOnWritePtr2
Method · 0.80
Calls
1
RefCount
Method · 0.45
Tested by
2
TestCopyOnWritePtr1
Method · 0.64
TestCopyOnWritePtr2
Method · 0.64