MCPcopy Create free account
hub / github.com/JeanPhilippeKernel/RendererEngine / CreateRef

Function CreateRef

ZEngine/include/ZEngine/ZEngineDef.h:33–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31
32 template <typename T, typename... Args>
33 Ref<T> CreateRef(Args&&... args) {
34 return std::make_shared<T>(std::forward<Args>(args)...);
35 }
36
37 template <typename T>
38 using WeakRef = std::weak_ptr<T>;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected