tools:cplusplus
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
tools:cplusplus [2021/05/19 15:31] – [Lambda Functions] ursgraf | tools:cplusplus [2021/05/19 15:42] – [Lambda Functions] ursgraf | ||
---|---|---|---|
Line 56: | Line 56: | ||
* Generic block: To be done | * Generic block: To be done | ||
- | A lambda function | + | A lambda function |
+ | <code cpp> | ||
+ | [captures] (params) {body} | ||
+ | </ | ||
+ | Captures are variables which are defined in the scope where the lambda function is defined and which can be made available to the lambda function either by value or by reference. Params are parameters which can be passed into the function like regular parameters. The body contains the code which is executed by the function. | ||
tools/cplusplus.txt · Last modified: 2021/07/08 19:31 by ursgraf