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

Method reset

include/daScript/misc/smart_ptr.h:173–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171 return set(p);
172 }
173 __forceinline void reset() {
174 T * t = ptr;
175 ptr = nullptr;
176 if ( t ) TP::delRef(t);
177 }
178 __forceinline void swap ( smart_ptr & p ) {
179 T * t = ptr;
180 ptr = p.ptr;

Callers

nothing calls this directly

Calls 2

delRefFunction · 0.70
setFunction · 0.50

Tested by

no test coverage detected