Use the fact that handles are now less-than comparable. NFC.

pull/442/head
Ryan Pavlik 2019-07-09 10:15:06 -05:00 committed by whitequark
parent 5efb09e6d4
commit b2af9cee6c
2 changed files with 1 additions and 7 deletions

View File

@ -313,7 +313,6 @@ public:
}
};
// A list, where each element has an integer identifier. The list is kept
// sorted by that identifier, and items can be looked up in log n time by
// id.

View File

@ -165,13 +165,8 @@ enum class Unit : uint32_t {
METERS
};
template<class T>
struct CompareHandle {
bool operator()(T lhs, T rhs) const { return lhs.v < rhs.v; }
};
template<class Key, class T>
using handle_map = std::map<Key, T, CompareHandle<Key>>;
using handle_map = std::map<Key, T>;
class Group;
class SSurface;