r/cpp • u/adityazero • Sep 20 '26
CppCon At cppcon WG21 had a whiteboard asking attendees what they would like to have in C++29
some of the ones I remember was:
- contracts
- profiles
- delete moar stuff
I'm curious what folks here expect. Also if someone remembers rest of the list, that'd be great.
57
Upvotes
View all comments
Show parent comment
1
u/CreativeAlbatross319 Sep 20 '26
I have never implemented a RB tree myself. But I think the same principle can apply here using lambda template and if constexpr. So inside the template, you can write two different runtime paths for two types via std::same_as concept. Maybe I misunderstood your example but I believe nothing is impossible if you use C++.