I call a method which returns std::set where T is a class type. What I\'m trying to achieve is to check whether the set contain
The std::set allows you to provide your own comparison function, as in
template < class Key, class Compare = less,
class Allocator = allocator > class set;
Only compare the values you care about and it will act as if objects with those values are =. Note that you will probably need a multiset for this.
This would be the way to do it if you really care about logn performance.