算数仿函数-相加
#include <iostream>
#include <functional>
using namespace std;
int main()
{
plus<int> p;
cout << p(10, 20) << endl;
return 0;
}
$ ./a.out
30
#include <iostream>
#include <functional>
using namespace std;
int main()
{
plus<int> p;
cout << p(10, 20) << endl;
return 0;
}
$ ./a.out
30