I need to map a set of integers to sets of integers.
First of all, I want to note that not all possible sets of integers are taken into account. Rather, I create the appropriate sets that the application will use (ever) - programmatically, only once and serializes it in a binary file.
Then I built QMap<QSet<int>, QSet<int> > setMap.
In the future, the application creates another set of integers (by user input), calls it userSetand quickly gets it setMap[userSet].
Now the problem is what QMapneeds operator <, specific to the key types, and obviously QSet<int>does not have this.
What can i do with this?
source
share