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
Cite the original work for its findings. Save a collection to share your selection of sources.