MCPcopy Create free account
hub / github.com/covscript/covscript / result op_destroy

Method result op_destroy

include/covscript/core/variable.hpp:540–546  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

538 return operators::result();
539 }
540 static COVSCRIPT_ALWAYS_INLINE operators::result op_destroy(void *lhs, void *rhs)
541 {
542 T *ptr = static_cast<T *>(lhs);
543 ptr->~T();
544 get_allocator().deallocate(ptr, 1);
545 return operators::result();
546 }
547 template <typename... ArgsT>
548 static COVSCRIPT_ALWAYS_INLINE void construct(basic_var *val, ArgsT &&...args)
549 {

Callers

nothing calls this directly

Calls 2

resultFunction · 0.85
deallocateMethod · 0.80

Tested by

no test coverage detected