Lambda captures (C++)

auto func = [/*capures*/](/*arguments*/){/*body*/};

Captures:

 <var> ... Local variable by value
&<var> ... Local variable by reference
   =   ... All local variable by value
   &   ... All local variable by reference
 this  ... Member variables via this pointer

If you want to capture just some member variables you can create references/pointers onto them and pass them, cause you can’t pass member variables directly.