void FUNC( std::function <TYPE1 (TYPE2 n,...) f >)
{
printf("FIRST");
f(n);
}
->FUNC( [] ( TYPE n , ...) { printf("SECOND"); } )
output:FIRST
output:SECOND
TYPE1 "f" return type,
TYPE2 "n" type;
f = [](TYPE n,...){ printf("SECOND");}
void FUNC( std::function <TYPE1 (TYPE2 n,...) f >)
{
printf("FIRST");
f(n);
}
->FUNC( [] ( TYPE n , ...) { printf("SECOND"); } )
output:FIRST
output:SECOND
TYPE1 "f" return type,
TYPE2 "n" type;
f = [](TYPE n,...){ printf("SECOND");}