Since pointer and reference both achieve the is-a relationship in context of inheritance in c++. So as we are used to store container of pointers to object to achieve polymorphic behavior is it also possible to do it with containers? That is to store references instead of pointers in the container?
My question is different than this because it's in the context of polymorphism