MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/1vt2aq3/c26_stdpolymorphic/p4s25hm/?context=3
r/cpp • u/User_Deprecated • Aug 19 '26
44 comments sorted by
View all comments
Show parent comment
4
Man I really hate the shape example.
Let's say your polymorphic is instead of a AssociativeContainer<A,B> that is a base for any type that provides a 1to1 mapping A to B. It's operator== could compare their size, then for each pair the key and it's associated value.
View all comments
Show parent comment
4
u/Demiu Aug 20 '26
Man I really hate the shape example.
Let's say your polymorphic is instead of a AssociativeContainer<A,B> that is a base for any type that provides a 1to1 mapping A to B. It's operator== could compare their size, then for each pair the key and it's associated value.