Key-based container with custom sort order?
-
I am looking for a container with fast key-based lookup (like QHash, QMap), but where I can choose in which order items are inserted (like QList). I think that none of the Qt or std containers can provide that, but I hope you can prove me wrong.
-
Technically, such a container would require two separate tables internally. I just hoped such a construct already existed.
-
Unfortunately, not an option here. They keys I need for searching have their own sort order, nothing I can influence.