P3668R3 — Defaulting Postfix Increment and Decrement Operations
Matthew Taylor, Alex (Waffl3x)
CWG
Revisions R4Jul 2026R3May 2026
Postfix increment and decrement operators have a default behaviour which already exists in the mind of every C++ developer - make a copy, increment/decrement the original, and return the copy. The canonical implementation of this default can always be expressed entirely in terms of other operations (prefix increment/decrement and copy-construction), in a manner which is entirely agnostic to any other members or subobjects of the class, e.g.