|
Capture |
Access to state from where the lambda is defined. We will leave it empty for now as this is a whole topic on its own, and only an empty capture can be used with function pointer parameters. |
|
Parameters |
Pass state from the code that calls the lambda function |
|
Return type |
Can be any function return type. Optional if void . In many cases, the compiler can derive the return type. |
|
Body |
Definition of the lambda function. Where the statements go. Anything you can do in a free function you can do in a lambda function |