I am using std::set<T> where T is my own class. Is there a way to have a set that is always sorted by property A of my class and still keep all elements inside unique in terms of property B in my class.
class T
{
public:
int A;
int B;
}
So I need my class instances to be sorted by A and unique by B. Any alternative to std::set as long as it is part from STL is also accepted.