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

Function IsValid

util/ysafeptr.h:352–354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

350////////////////////////////////////////////////////////////////////////////////////////////////////
351template <class T>
352inline bool IsValid(T* p) {
353 return p != nullptr && !CastToObjectBase(p)->IsRefInvalid();
354}
355template <class T, class TRef>
356inline bool IsValid(const TPtrBase<T, TRef>& p) {
357 return p.Get() && !p.GetBarePtr()->IsRefInvalid();

Callers 15

SafeTestMethod · 0.85
TEnumBitSetClass · 0.85
PosMethod · 0.85
ConnectMethod · 0.85
OpenMethod · 0.85
CloseMethod · 0.85
CreateSocketMethod · 0.85
ConnectMethod · 0.85
SendMMsgMethod · 0.85
SendMsgMethod · 0.85
OpenImplMethod · 0.85
CloseImplMethod · 0.85

Calls 4

CastToObjectBaseFunction · 0.85
IsRefInvalidMethod · 0.80
GetBarePtrMethod · 0.80
GetMethod · 0.45

Tested by 2

ConnectMethod · 0.68
ConnectMethod · 0.68