fun1.cpp 232 Bytes
#include <iostream>
#include <vector>
#include <algorithm>
#include <functional>

using namespace std;

int main ()
{
  function<int(int,int)> f = [](int x, int y) -> int {int z = x + y; return z + x;};
  cout << f(3,4) << endl;
};