If I have a class called
Something, what will the consequences for memory be if I include, in that class, a pointer to another object of the same class? So if the objects
ThingTwo are both
ThingOne's contained pointer could point to
ThingTwo (and vice versa, I assume)? I am trying to create a very simple alternative to both typical arrays (I need something more dynamic) and classic vectors (they keep gumming up my work. Please do not misinterpret this question as asking for help on vectors, though).
Needless to say, the pointers would be empty in the class, only to be set when an instance of the object has already been created.