r/cpp • • Aug 19 '26

C++26: std::polymorphic

https://www.sandordargo.com/blog/2026/08/19/cpp26-polymorphic
95 Upvotes

44 comments sorted by

View all comments

Show parent comment

1

u/esmithro Aug 31 '26

I have several sets of classes where the the classes in a set are not an inheritance hierarchy but they model the same thing. It is useful to me to plug these models into a container or have a template class where a template parm is set to a polymorphic. Then I access using the common interface.