Quick Q: Can a lambda refer to local variables? -- StackOverflow
Quick A: Using the []
capture list.
Yesterday on SO:
Is it possible in C++11 / 14 syntax to write an lambda function which will see parent variables?
In abstraction:
int i = 1; auto go = [] () { return i; };Is it possible to make something like that in modern C++ syntax?