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

Method AddRef

util/ysafeptr.h:266–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264 TUserObj* ptr;
265
266 void AddRef(TUserObj* _ptr) {
267 TRef p;
268 if (_ptr) {
269 p.AddRef(CastToObjectBase(_ptr));
270 }
271 }
272 void DecRef(TUserObj* _ptr) {
273 TRef p;
274 if (_ptr) {

Callers 1

AddRefMethod · 0.45

Calls 1

CastToObjectBaseFunction · 0.85

Tested by

no test coverage detected