I have a bit of a design problem. I need to have an array of objects, however this array gets resized and elements moved. I need a way to keep a reference to each element without knowing where it is and retrn said reference.
I was thinking of creating something like a templated class with an array of smart pointers and have a lookup table for the pointers and use that table to return the reference to the desired element or something along those lines...
Any ideas?