Skip to content

Instantly share code, notes, and snippets.

@ElemarJR
Created December 1, 2012 19:12
Show Gist options
  • Select an option

  • Save ElemarJR/4184204 to your computer and use it in GitHub Desktop.

Select an option

Save ElemarJR/4184204 to your computer and use it in GitHub Desktop.
#include <iostream>
using namespace std;
int main() {
auto add = [](int a, int b) -> int { return a + b; };
cout << "add(5, 2) = " << add(5,2) << endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment