From 6fe7e8850919f0b05c465821e0c0517eec589932 Mon Sep 17 00:00:00 2001 From: bolero-MURAKAMI Date: Sat, 1 Oct 2011 00:26:49 +0900 Subject: [PATCH] =?UTF-8?q?pair=20hash=20=E7=89=B9=E6=AE=8A=E5=8C=96?= =?UTF-8?q?=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sprout/functional/hash/sscrisk/cel/utility.hpp | 16 ++++++++++++++++ sprout/user_config.hpp => sprout_user_config.hpp | 0 user_config.hpp | 4 ---- 3 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 sprout/functional/hash/sscrisk/cel/utility.hpp rename sprout/user_config.hpp => sprout_user_config.hpp (100%) delete mode 100644 user_config.hpp diff --git a/sprout/functional/hash/sscrisk/cel/utility.hpp b/sprout/functional/hash/sscrisk/cel/utility.hpp new file mode 100644 index 00000000..3fe729b5 --- /dev/null +++ b/sprout/functional/hash/sscrisk/cel/utility.hpp @@ -0,0 +1,16 @@ +#ifndef SPROUT_FUNCTIONAL_HASH_SSCRISK_CEL_UTILITY_HPP +#define SPROUT_FUNCTIONAL_HASH_SSCRISK_CEL_UTILITY_HPP + +#include +#include +#include +#include + +namespace sprout { + template + SPROUT_CONSTEXPR std::size_t hash_value(sscrisk::cel::pair const& v) { + return sprout::hash_combine(sprout::hash_combine(0, v.first), v.second); + } +} // namespace sprout + +#endif // #ifndef SPROUT_FUNCTIONAL_HASH_SSCRISK_CEL_UTILITY_HPP diff --git a/sprout/user_config.hpp b/sprout_user_config.hpp similarity index 100% rename from sprout/user_config.hpp rename to sprout_user_config.hpp diff --git a/user_config.hpp b/user_config.hpp deleted file mode 100644 index c0a86f4e..00000000 --- a/user_config.hpp +++ /dev/null @@ -1,4 +0,0 @@ - -//#define SPROUT_CONFIG_DISABLE_CONSTEXPR -//#define SPROUT_CONFIG_DISABLE_NOEXCEPT -//#define SPROUT_CONFIG_USE_SSCRISK_CEL