2013-02-04 09:42:39 +00:00
|
|
|
#ifndef SPROUT_FUNCTIONAL_HASH_TO_HASH_HPP
|
|
|
|
#define SPROUT_FUNCTIONAL_HASH_TO_HASH_HPP
|
|
|
|
|
|
|
|
#include <cstddef>
|
|
|
|
#include <sprout/config.hpp>
|
|
|
|
#include <sprout/functional/hash/hash_fwd.hpp>
|
|
|
|
#include <sprout/utility/forward.hpp>
|
|
|
|
#include <sprout/adl/not_found.hpp>
|
|
|
|
|
|
|
|
namespace sprout_adl {
|
|
|
|
sprout::not_found_via_adl hash_value(...);
|
|
|
|
} // namespace sprout_adl
|
|
|
|
|
|
|
|
namespace sprout {
|
|
|
|
//
|
|
|
|
// to_hash
|
|
|
|
//
|
|
|
|
template<typename T>
|
|
|
|
inline SPROUT_CONSTEXPR std::size_t
|
2013-04-22 04:04:27 +00:00
|
|
|
to_hash(T&& v) {
|
|
|
|
using sprout::hash_value;
|
|
|
|
using sprout_adl::hash_value;
|
|
|
|
return hash_value(sprout::forward<T>(v));
|
2013-02-04 09:42:39 +00:00
|
|
|
}
|
|
|
|
} // namespace sprout
|
|
|
|
|
2013-04-22 04:04:27 +00:00
|
|
|
#include <sprout/functional/hash/hash_value.hpp>
|
|
|
|
|
2013-02-04 09:42:39 +00:00
|
|
|
#endif // #ifndef SPROUT_FUNCTIONAL_HASH_TO_HASH_HPP
|