Use the fact that handles are now less-than comparable. NFC.
parent
5efb09e6d4
commit
b2af9cee6c
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue