P4040R1 — Case ranges
Jan Schultke
SG22
Revisions R1Jul 2026R0Apr 2026
In 2024, [[N3370]](https://www%2eopen-std%2eorg/jtc1/sc22/wg14/www/docs/n3370%2ehtm) added support for `case` ranges to C2y. For example, the following two `switch` statements are equivalent: