MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / SkrNewLambda

Function SkrNewLambda

modules/core/core/include/SkrMemory/memory.h:363–369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

361
362template <typename F>
363[[nodiscard]] SKR_FORCEINLINE F* SkrNewLambda(F&& lambda)
364{
365 using ValueType = std::remove_reference_t<F>;
366 void* pMemory = sakura_new_aligned(sizeof(ValueType), alignof(ValueType));
367 SKR_ASSERT(pMemory != nullptr);
368 return new (pMemory) DEBUG_NEW_SOURCE_LINE auto(skr::forward<F>(lambda));
369}
370
371template <typename T>
372void SkrDelete(T* pType)

Callers 2

scheduleFunction · 0.85
main_module_execMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected