Fold Expressions
suggest changeVersions
Remarks
Fold expressions are supported for these operators:
+ - * / % ^ & | << >> += -= *= /= %= ^= &= |= <<= >>= = == != < > <= >= && || , .* ->*
A unary fold over an empty pack is ill-formed, except for these three operators:
| Operator | Value when the pack is empty |
|---|---|
&& |
true |
| ` | |
, |
void() |
A binary fold has an initializer, so an empty pack is well-formed and the result is that initializer.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents