Replace custom hash struct with std::hash in unordered_map definition

This commit is contained in:
mutouyun 2025-05-24 15:14:30 +08:00 committed by 木头云
parent 9d6bb92a15
commit 7eb7b93bfa

View File

@ -10,12 +10,9 @@
namespace ipc { namespace ipc {
template <typename T>
struct hash : public std::hash<T> {};
template <typename Key, typename T> template <typename Key, typename T>
using unordered_map = std::unordered_map< using unordered_map = std::unordered_map<
Key, T, ipc::hash<Key>, std::equal_to<Key>, ipc::mem::container_allocator<std::pair<Key const, T>> Key, T, std::hash<Key>, std::equal_to<Key>, ipc::mem::container_allocator<std::pair<Key const, T>>
>; >;
template <typename Key, typename T> template <typename Key, typename T>