DOE OSTI · 1776739
P2355R0: Postfix fold expressions
Abstract
Fold expressions work with binary operators, but not with unary operators: you can write !!…!!x, but there’s still only one x. However, there are other kinds of operators to which they might apply. In particular, there are several plausible use cases for the postfix operators [ ] and ( ) (function call). This paper proposes extending the fold-expression syntax to support these two operators. The rationale for the syntactical structure is also presented.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Herring, Stuart Davis. 2021-04-12. P2355R0: Postfix fold expressions. https://doi.org/10.2172/1776739. https://searchnasa.com/record/osti%3A1776739/p2355r0-postfix-fold-expressions
Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite Search NASA by Indiciae: BibTeX · RIS.