File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 1636
1636
1637
1637
\begin {bnf }
1638
1638
\nontermdef {lambda-expression}\br
1639
- lambda-introducer \opt { lambda-declarator} compound-statement\br
1640
- lambda-introducer \terminal {<} template-parameter-list \terminal {>} \opt {requires-clause} \opt { lambda-declarator} compound-statement
1639
+ lambda-introducer lambda-declarator compound-statement\br
1640
+ lambda-introducer \terminal {<} template-parameter-list \terminal {>} \opt {requires-clause} lambda-declarator compound-statement
1641
1641
\end {bnf }
1642
1642
1643
1643
\begin {bnf }
1647
1647
1648
1648
\begin {bnf }
1649
1649
\nontermdef {lambda-declarator}\br
1650
- \terminal {(} parameter-declaration-clause \terminal {)} \opt {decl-specifier-seq}\br
1651
- \bnfindent\opt {noexcept-specifier} \opt {attribute-specifier-seq} \opt {trailing-return-type} \opt {requires-clause}
1650
+ lambda-specifiers\br
1651
+ \terminal {(} parameter-declaration-clause \terminal {)} lambda-specifiers \opt {requires-clause}
1652
+ \end {bnf }
1653
+
1654
+ \begin {bnf }
1655
+ \nontermdef {lambda-specifiers}\br
1656
+ \opt {decl-specifier-seq} \opt {noexcept-specifier} \opt {attribute-specifier-seq} \opt {trailing-return-type}
1652
1657
\end {bnf }
1653
1658
1654
1659
\pnum
1681
1686
\end {note }
1682
1687
1683
1688
\pnum
1684
- If a \grammarterm {lambda-expression} does not include a
1689
+ If a \grammarterm {lambda-expression} includes an empty
1685
1690
\grammarterm {lambda-declarator}, it is as if the \grammarterm {lambda-declarator} were
1686
1691
\tcode {()}.
1687
1692
The lambda return type is \tcode {auto}, which is replaced by the
You can’t perform that action at this time.
0 commit comments