MCPcopy Create free account
hub / github.com/CCob/lsarelayx / createPolymorphic

Method createPolymorphic

plugin/include/bitsery/ext/pointer.h:56–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54 }
55
56 static void createPolymorphic(T& obj, pointer_utils::PolyAllocWithTypeId alloc,
57 const std::shared_ptr<PolymorphicHandlerBase>& handler) {
58 obj = static_cast<TElement*>(handler->create(alloc));
59 }
60
61 static void destroy(T& obj, pointer_utils::PolyAllocWithTypeId alloc, size_t typeId) {
62 alloc.deleteObject(obj, typeId);

Callers

nothing calls this directly

Calls 1

createMethod · 0.45

Tested by

no test coverage detected