Content deleted Content added
Line 713:
</syntaxhighlight>
Since [[C++17]], a lambda can be declared <code>[[constexpr]]</code>, and since [[C++20]], <code>[[consteval]]</code> with the usual semantics. These specifiers go after the parameter list, like <code>mutable</code>. Starting from [[C++23]], the lambda can also be <code>[[static member function|static]]</code> if it has no captures. The <code>static</code> and <code>mutable</code> specifiers are not allowed to be combined
Also since C++23 a lambda expression can be recursive through explicit <code>this</code> as first parameter:
|