要调用的函数
int gg(int a, int b){
return a + b;
}
函数指针变量
int (*f1)(int, int); //1
function<int(int, int)> f2 = gg; //2
f1 = gg;
f1(1, 2);
f2(1, 2);
函数指针类型
typedef int (*func1)(int, int); //1
using func2 = int (*)(int, int); //2
typedef function<int(int, int)> func3; //3
func1 f1 = gg;
func2 f2 = gg;
func3 f3 = gg;
f1(1, 2);
f2(1, 2);
f3(1, 2);