C++17 lambda capture *this
How is it useful? It’s useful when you need a copy of *this – for example, when *this itself is no longer valid by the time the lambda is evaluated. How is it different from capturing this? It makes a copy of the object, so that when the lambda is evaluated, its this pointer refers … Read more