A>typedef int (*func)(int); A>int foo(func f) A>{ A> return f(10); A>} A>int main() A>{ A> return foo([](int a) { return 2 * a; }); A>} A>