Fold Expressions

Download c++ eBook

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

Stats

351 Contributors: 8
Friday, October 28, 2016
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook