More returning STL Objects
<< split from http://cboard.cprogramming.com/cplus...l-objects.html >>
Hello. I am new to C++, but got some experience in C. I got a question that is similar to the one of this topic. Done some search, and found many diferents results.. If anyone could help me, I apreciate.
I have a vector of a class1 objects. I can make class 1 to not be updated after it is created, if it helps me.
On another vector of class2, I must have atributes that are some members of class1. This vector must be updated, by incerction, removal of members of class2 (will not modify those elements).
Ok, I could keep indexes to track the members of class1 that belong to the members of this atribute on class2.
But I would like to know if the is a more fance way of doing that, by exploring some C++ feature or object oriented technic.