Skip to content

Commit bb3c6eb

Browse files
committed
Replace custom hash struct with std::hash in unordered_map definition
1 parent 7012109 commit bb3c6eb

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/libipc/mem/resource.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,9 @@
1010

1111
namespace ipc {
1212

13-
template <typename T>
14-
struct hash : public std::hash<T> {};
15-
1613
template <typename Key, typename T>
1714
using unordered_map = std::unordered_map<
18-
Key, T, ipc::hash<Key>, std::equal_to<Key>, ipc::mem::container_allocator<std::pair<Key const, T>>
15+
Key, T, std::hash<Key>, std::equal_to<Key>, ipc::mem::container_allocator<std::pair<Key const, T>>
1916
>;
2017

2118
template <typename Key, typename T>

0 commit comments

Comments
 (0)