![]() |
MCRO
C++23 utilities for Unreal Engine.
|
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 | 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 * | 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. | |
| 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.
Usage:
| init | A lambda function with a single l-value reference parameter of the object type to initialize. |
| args | Arguments of the object constructor |
Definition at line 51 of file Construct.h.
| 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.
Usage:
| init | A lambda function with a single l-value reference parameter of the object type to initialize. |
| args | Arguments of the object constructor |
Definition at line 88 of file Construct.h.