One problem i can't seem to find the solution to is that i can't seem to access a class from a container using an iterator and the algorihm functions. like if the container was like this:
Code:
vector<int> Vector;
then getting the value from it would be easy:
Code:
(*i) = find(Vector.begin(),Vector.End(),40);
but what if you had something like this:
Code:
vector<Entity*> Ent;
(*i) = find(Ent.begin(),Ent.end(), ent);
obviously that would produce an error and which instance of the class would i be getting from the iterator? 0? 40? 100? I can't figure it out how do do that with a container that has user defined types. Maybe I'm wrong, maybe there's a way i'm just not getting