/*============================================================================= Copyright (c) 2011-2016 Bolero MURAKAMI https://github.com/bolero-MURAKAMI/Sprout Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ #ifndef SPROUT_FUNCTIONAL_HASH_HASH_VALUE_TRAITS_HPP #define SPROUT_FUNCTIONAL_HASH_HASH_VALUE_TRAITS_HPP #include #include #include #include namespace sprout_adl { sprout::not_found_via_adl hash_value(...); } // namespace sprout_adl namespace sprout_hash_detail { template inline SPROUT_CONSTEXPR std::size_t call_hash_value(T const& v) { using sprout::hash_value; using sprout_adl::hash_value; return hash_value(v); } } // namespace sprout_hash_detail namespace sprout { // // hash_value_traits // template struct hash_value_traits { public: static SPROUT_CONSTEXPR std::size_t hash_value(T const& v) { return sprout_hash_detail::call_hash_value(v); } }; template struct hash_value_traits : public sprout::hash_value_traits {}; template struct hash_value_traits : public sprout::hash_value_traits {}; template struct hash_value_traits : public sprout::hash_value_traits {}; } // namespace sprout #include #include #endif // #ifndef SPROUT_FUNCTIONAL_HASH_HASH_VALUE_TRAITS_HPP