Anonymous function: Difference between revisions

Content deleted Content added
m C++ (since C++11): Avoid erroneous syntax highlighting
Line 605:
[capture](parameters) trailing_return_type { function_body }
</syntaxhighlight>
where "<code>trailing_return_type</code>" is optional and is of the form "<code>-> return_type</code>". If it is absent, the return type is deduced from <code>return</code> statements as if for a function with declared return type <code>auto</code>.
 
This is an example lambda expression: