Question.11
A developer tries to explicitly type a lambda:
// What type is this? ??? cb = [x](int val) { return val + x; };
Can you write the lambda's type explicitly?
Select Answer
Yes -- it is void(*)(int)
No -- each lambda has a unique, compiler-generated unnamed type; auto is the only practical way to store it in a local variable
Yes -- it is std::function<int(int)>
Yes -- it is int(*)(int)