c++中的std 中的function模板類

我也不知道這是爲什麼 1.仿函數:又叫std::function,是C++中的一個模板類 2.C語言中的函數指針: int  add(int a,int b) {   return a+b; } typedef int (*func)(int,int);//給函數類型定義別名 func func1; func1=add;//給函數指針初始化 或者int (*func1)(int,int)=add;
相關文章
相關標籤/搜索