What then, is the best practice in overloading operators on members of the stl vector class?

In particular, which of these three choices do you think is best?

i) to use operator overload to implement the operations I need to do on vectors but not inherit the class.

ii) to inherit the stl vector class and overload operators and

iii) to create my own class and implement all the operators I would need.

More Chinedu Nwaigwe's questions See All
Similar questions and discussions