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
58
Upvotes
r/cpp • u/pavel_v • Apr 16 '26
View all comments
Show parent comment
2
u/MarcoGreek Apr 16 '26
I am unsure about it too but the conversation to bool is magic. Still I am using it as a general pattern because it is very useful to reduce a common pattern.
So it depends how common that pattern will get.