This is great explanation on lambdas https://docs.microsoft.com/en-us/cpp/cpp/lambda-expressions-in-cpp?view=msvc-160
I already read this before asking the question. I see what it does, but not why it does it. the syntax is so convoluted.
Capture clause is a list of variables captured by a lambda and they can be used inside lambda. What's not clear here?
Обсуждают сегодня