MCPcopy Create free account
hub / github.com/covscript/covscript / construct

Function construct

include/covscript/core/variable.hpp:548–553  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

546 }
547 template <typename... ArgsT>
548 static COVSCRIPT_ALWAYS_INLINE void construct(basic_var *val, ArgsT &&...args)
549 {
550 T *ptr = get_allocator().allocate(1);
551 ::new (ptr) T(std::forward<ArgsT>(args)...);
552 val->m_store.ptr = ptr;
553 }
554 static inline operators::result dispatcher(operators::type op, const basic_var *lhs, void *rhs)
555 {
556 using handler_t = operators::result (*)(void *, void *);

Callers 2

cniMethod · 0.85
construct_storeFunction · 0.85

Calls 1

allocateMethod · 0.80

Tested by

no test coverage detected