June 2017
Intermediate to advanced
532 pages
12h 59m
English
Specifies if and what we capture. There are several forms to do so. There are two lazy variants:
Of course, we can set the capturing settings for every variable individually. Writing [a, &b] () {...} means, that we capture the variable a by value, and b by reference. This is more typing work, but it's generally safer to be that verbose because we cannot accidentally capture something we don't want to capture from outside.
In the recipe, we defined a lambda ...
Read now
Unlock full access