void func(int a) {} int main () { std::function f = [] (int a) {} ; stub.set(func, f); // 类似这样的调用? }