From d6576ed2f1461263f671e3000e7c16c3b012635c Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Tue, 18 Jan 2022 19:25:32 +0200 Subject: [PATCH] Remove the special case in pick_policy for integral types (refs #50) --- .../boost/unordered/detail/implementation.hpp | 38 ------------------- 1 file changed, 38 deletions(-) diff --git a/include/boost/unordered/detail/implementation.hpp b/include/boost/unordered/detail/implementation.hpp index 225a02ff..fc83e739 100644 --- a/include/boost/unordered/detail/implementation.hpp +++ b/include/boost/unordered/detail/implementation.hpp @@ -2063,44 +2063,6 @@ namespace boost { { }; - // While the mix policy is generally faster, the prime policy is a lot - // faster when a large number consecutive integers are used, because - // there are no collisions. Since that is probably quite common, use - // prime policy for integeral types. But not the smaller ones, as they - // don't have enough unique values for this to be an issue. - - template <> struct pick_policy2 - { - typedef prime_policy type; - }; - - template <> struct pick_policy2 - { - typedef prime_policy type; - }; - - template <> struct pick_policy2 - { - typedef prime_policy type; - }; - - template <> struct pick_policy2 - { - typedef prime_policy type; - }; - -#if !defined(BOOST_NO_LONG_LONG) - template <> struct pick_policy2 - { - typedef prime_policy type; - }; - - template <> struct pick_policy2 - { - typedef prime_policy type; - }; -#endif - template struct pick_policy : pick_policy2::type> {