User Tools

Site Tools


tools:cplusplus

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tools:cplusplus [2021/05/19 15:31] – [Lambda Functions] ursgraftools:cplusplus [2021/07/08 19:31] (current) – [Lambda Functions] ursgraf
Line 54: Line 54:
   * Safety system: see [[eeros_architecture:safety_system:properties#level_actions|Level Actions]].   * Safety system: see [[eeros_architecture:safety_system:properties#level_actions|Level Actions]].
   * Function used by periodic: see [[tools:logger_cs:start|]]   * Function used by periodic: see [[tools:logger_cs:start|]]
-  * Generic block: To be done+  * Generic block: see [[eeros_architecture:control_system:available_blocks:generic|]]
  
-A lambda function can be defined as follows+A lambda function must be defined as follows 
 +<code cpp> 
 +[captures] (params) {body} 
 +</code> 
 +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.1621431093.txt.gz · Last modified: 2021/05/19 15:31 by ursgraf