![]() |
MCRO
C++23 utilities for Unreal Engine.
|
Go to the source code of this file.
Namespaces | |
namespace | Mcro |
namespace | Mcro::Construct |
Functions | |
template<CFunctorObject Initializer, typename... Args, typename ResultArg = TFunction_Arg<Initializer, 0>, typename Result = std::decay_t<ResultArg>> requires std::is_lvalue_reference_v<ResultArg> | |
Result | Mcro::Construct::Construct (Initializer &&init, Args &&... args) |
Simply makes a new object and allows to initialize it in place with a lambda function. The object type is derived from the first argument of the initializer lambda function. | |
template<CFunctorObject Initializer, typename... Args, typename ResultArg = TFunction_Arg<Initializer, 0>, typename Result = std::decay_t<ResultArg>> requires std::is_lvalue_reference_v<ResultArg> | |
Result * | Mcro::Construct::ConstructNew (Initializer &&init, Args &&... args) |
Simply makes a new object on the heap and allows to initialize it in place with a lambda function. The object type is derived from the first argument of the initializer lambda function. | |
Definition in file Construct.h.