brevzin / cpp_proposals

My WG21 proposals
35 stars 22 forks source link

P0893 Chaining Comparisons #53

Closed brevzin closed 1 year ago

brevzin commented 1 year ago

D0893R2 - Chaining Comparisons

brevzin commented 1 year ago

Discussed in San Diego

D0893R2 as presented (For C++20) SF F N A SA
0 5 6 9 10
Explore unary <=> to introduce comparison chains for C++23 Alternative: <=>(a < b < c) chains <=>( (a < .. ) ) SF F N A SA
0 4 6 13 8