#include #include #include using namespace std; int main(){ map> tab; tab.insert(make_pair('+', [](double a, double b){return a+b;})); tab.insert(make_pair('-', [](double a, double b){return a-b;})); cout << "3.5 + 4.5= " << tab['+'](3.5,4.5) << endl; }