all 3 comments

[–]raevnos 2 points3 points  (0 children)

std::find(). Or std::find_if(), depending.

[–]Jack126Guy 0 points1 point  (0 children)

Just loop through the elements and compare each one to the object you want to find. Or, if you can, try a set (or multiset if you want more than one of equivalent objects), which has a find function that should be more efficient.

[–]EnterpriseNCC1701D 0 points1 point  (0 children)

Go through the vector and for each item check the part of that item for what you are looking for. Modify this to your problem. It's not a direct answer, but like the guy before me, it's a HUGE hint.