Original Post
Hi all, Suppose the following: I have 3 instances of a class CSimpleClass: CSimpleClass* ObjA = new CSimpleClass; CSimpleClass* ObjB = new CSimpleClass; CSimpleClass* ObjC = new CSimpleClass; I then add the pointers to these classes to a list: std::list testList; testList.push_back( ObjA ); testList.push_back( ObjB ); testList.push_back( ObjC ); The list now contains copies of the pointers to the objects. Now, suppose I want to check if ObjA is present in the list, what would be the best way to do this (without using an unique id of each class)? Best Regards, Risto