If I want to pass either of these vectors from other functions to a single function (Myfunc) how is it accomplished? The internal logic of Myfunc only requires it to accept one vector at a time so that the objects in the vector can be worked on and attributes changed. To reiterate, both vectors are NOT required simultaneously in Myfunc.
I assume, Myfunc only needs one generic argument that accepts either vector when and if it is sent to that function. And it is that generic pass by reference of either vector that has me baffled.
Thanks for any help.
You make your Myfunc a template function, so it can be used for vector<Alclass> and vector<Axclass>
Otherwise just overload the function(write a vector<Alclass> version and write a second that takes vector<Axclass>), shouldnt be hard