Professional Documents
Culture Documents
Following is a list of captures relevant to capturing *this since C++11. Note that the below captures
can include other variables also from the lambda's context (e.g., [this] could be [this, i, j]), as
permitted. We are keeping it simple here for the sake of brevity.
[this,*this]
Deprecated
[=] Implicit &(*this) Implicit &(*this) Implicit &(*this)
C++20 change
https://www.nextptr.com/tutorial/ta1430524603/capture-this-in-lambda-expression-timeline-of-change