Stats

351 Contributors: 8 Friday, October 28, 2016
Licensed under: CC-BY-SA
Not affiliated with Stack Overflow
Rip Tutorial: riptutorial@gmail.com
Roadmap: roadmap

Fold Expressions

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:

OperatorValue when parameter pack is empty
&&true
||false
,void()

Related Examples