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

Method Unshare

util/generic/ptr.h:1204–1208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1202#endif
1203private:
1204 inline void Unshare() {
1205 if (Shared()) {
1206 Reset(TCopy::Copy(T_.Get()));
1207 }
1208 }
1209
1210private:
1211 TPtr T_;

Callers

nothing calls this directly

Calls 3

CopyFunction · 0.70
ResetFunction · 0.50
GetMethod · 0.45

Tested by

no test coverage detected