Assume I have a class A say has 2 functions funn1 and func2.
When I write func1 first and inside func1 I have a lamda which needs to access A obj members, refer to local var and quite big.
const auto mylamda = [&, this](...) {}
Now I want to use the same lamda in func2. Wondering how to achieve it? Can I define the lamda in class header file?