3 ms·
Oh, that is simple: in associative containers, you can pass an external comparator as additional template parameter. Use that. Don't implicitly convert, it will
by stkdump 7y ago
Oh, that is simple: in associative containers, you can pass an external comparator as additional template parameter. Use that. Don't implicitly convert, it will bite you.
- mort96 7y agoOh thanks, I somehow didn't see that. That does sound better yeah.
- de_watcher 7y agoAnd also see if you're better off with an std::unordered_map or a custom sorted-array implementation of a map.