MCPcopy Create free account
hub / github.com/RenderKit/oidn / detach

Function detach

core/ref.h:122–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120 }
121
122 oidn_inline T* detach() noexcept
123 {
124 T* res = ptr;
125 ptr = nullptr;
126 return res;
127 }
128
129 friend oidn_inline bool operator < (const Ref<T>& a, const Ref<T>& b) noexcept { return a.ptr < b.ptr; }
130

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected