r/cpp • • Aug 22 '25

The power of C++26 reflection: first class existentials

100 Upvotes

98 comments sorted by

View all comments

Show parent comment

1

u/[deleted] Aug 25 '25

[removed] — view removed comment

1

u/reflexive-polytope Aug 25 '25

Even ignoring efficiency concerns, that only works if foo is a container that's always nonempty.