I have QMap, and I want to make the QSetkey of this, I could not do this, because it is QSetnot comparable. eg:
QSet<int> intSet;
QMap<QSet<int>, char> charSet;
intSet.insert(1);
intSet.insert(2);
intSet.insert(3);
charSet.insert(intSet, '6');
Is there any way to make it work? and if I inherit from QSetand determine operator <how do I implement it? ie: What should be the logic of comparison?
Note. I really care about performance
source
share