callFunctionWithParamsStruct

ReturnType!f
callFunctionWithParamsStruct
(
S
)
(
S s
)

Examples

Consider function

float f(int a, float b) {
    return a + b;
}

Then we can call it like callFunctionWithParamsStruct!f(combined) where combined in this example may be created by combine function. (callFunctionWithParamsStruct is intented mainly to be used together with combine function.)

The members from combined are passed to the function f in the same order as they are defined in the struct.

Meta