r/cpp • u/pavel_v • Apr 16 '26
C++26: Structured bindings in conditions
https://www.sandordargo.com/blog/2026/04/15/cpp26-structured-bindings-condition
60
Upvotes
r/cpp • u/pavel_v • Apr 16 '26
View all comments
6
u/arthurno1 Apr 16 '26
Basically multiple values return and multiple value bind from Common Lisp, but one has to declare an explicit struct and polute the namespace instead of using an inline statement like in CL (values).