MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / smart_ptr

Method smart_ptr

include/daScript/misc/smart_ptr.h:118–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116 using element_type = T;
117 using element_type_ptr = T *;
118 smart_ptr ( smart_ptr_jit * p ) {
119 init((T *)p);
120 }
121 explicit operator smart_ptr_jit * () {
122 addRef(); // this is only during jit wrapping. we cast to this. old one gets deleted. we need to add ref.
123 return (smart_ptr_jit *)ptr;

Callers

nothing calls this directly

Calls 2

initFunction · 0.50
getMethod · 0.45

Tested by

no test coverage detected