January 2018
Intermediate to advanced
374 pages
9h 53m
English
To understand what the lambda function consists of, one can view it as a regular class with restrictions:
The following table shows a simple lambda function, is_above, and a class which corresponds to the lambda function. The left column uses capture by value and the right column shows capture by reference.
|
Lambda with capture by value... |
Lambda with capture by reference... |
auto th = 3;auto is_above = [th |