From d014ba2d0e4cf0fadbb7a5712b69569a428acf8a Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sun, 25 Oct 2015 19:31:29 +0100 Subject: Major refactoring of equiv_struct --- kernel/hashlib.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'kernel') diff --git a/kernel/hashlib.h b/kernel/hashlib.h index 3cc95b6e4..4f5a353c5 100644 --- a/kernel/hashlib.h +++ b/kernel/hashlib.h @@ -162,6 +162,11 @@ struct hash_obj_ops { } }; +template +inline unsigned int mkhash(const T &v) { + return hash_ops().hash(v); +} + inline int hashtable_size(int min_size) { static std::vector zero_and_some_primes = { -- cgit v1.2.3