Fold Expressions

suggest change

Versions

[{“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()|

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents