MCRO
C++23 utilities for Unreal Engine.
|
Data Structures | |
struct | TInitializeOnCopy |
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) |
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) |
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 |
Definition at line 50 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 |
Definition at line 86 of file Construct.h.