Fold Expressions

suggest change

Versions

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.

Feedback about page:

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



Table Of Contents