Im trying to use the stl vector to implement a container. The container doesnot need any data and member functions. It should just act as a stack for the objects.
But the objects are not homogneous.so I don t think i can use vector. How can I implement this ?
ops = new A(.....); A is a user defined class
ops = new B(.....);B is a user defined class
I m not sure how to write the class container. What does it need to be a valid type to be used with stl vector?
Please let me know.