okay so I want to create a class that will keep track of all my objects automatically but don't know exactly how to accomplish this. my idea would be to creat a class that would have an array as a private member and then also have an add function that would take pointers of my obj. This class would be accessible by my other classes so when an obj is created ideally in its constructor it would pass a pointer of itself to the add function. I don't know if this is possible anyone know of a way to accomplish this?