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

Method Mutable

util/generic/ptr.h:1175–1179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1173 }
1174
1175 inline T* Mutable() {
1176 Unshare();
1177
1178 return T_.Get();
1179 }
1180
1181 inline bool Shared() const noexcept {
1182 return T_.RefCount() > 1;

Callers 2

TestCopyOnWritePtr1Method · 0.45
TestCopyOnWritePtr2Method · 0.45

Calls 1

GetMethod · 0.45

Tested by 2

TestCopyOnWritePtr1Method · 0.36
TestCopyOnWritePtr2Method · 0.36