Fold Expressions
suggest changeVersions
[{“Name”:“C++17”,“GroupName”:null}]
Remarks
Fold Expressions are supported for the following operators
| | | | | | | | | | | |
—– | ——| —— | —— | —— |—— |—— |—— |—— |—— |—— |—— |
|+ |- |* |/ |% |\ˆ |& | | | <<| >>| | |+= |-= |*= |/= |%= |\ˆ= |&= ||= |<<=| >>=| =| |== |!= |< |> |<= |>= |&& | || |,| .*| ->*|
When folding over an empty sequence, a fold expression is ill-formed, except for the following three operators:
Operator| Value when parameter pack is empty|
—— | —— |
&&| true|
||| false|
,| void()|
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents