2013-08-08 09:54:33 +00:00
|
|
|
/*=============================================================================
|
2015-01-10 10:13:57 +00:00
|
|
|
Copyright (c) 2011-2015 Bolero MURAKAMI
|
2013-08-08 09:54:33 +00:00
|
|
|
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)
|
|
|
|
=============================================================================*/
|
2011-10-12 20:28:33 +00:00
|
|
|
#ifndef SPROUT_FUNCTIONAL_HASH_HASH_FWD_HPP
|
|
|
|
#define SPROUT_FUNCTIONAL_HASH_HASH_FWD_HPP
|
|
|
|
|
|
|
|
#include <sprout/config.hpp>
|
2014-04-30 07:30:26 +00:00
|
|
|
#include <sprout/workaround/std/cstddef.hpp>
|
2011-10-12 20:28:33 +00:00
|
|
|
|
|
|
|
namespace sprout {
|
|
|
|
//
|
|
|
|
// hash
|
|
|
|
//
|
|
|
|
template<typename T>
|
|
|
|
struct hash;
|
|
|
|
|
2011-10-29 03:02:21 +00:00
|
|
|
//
|
|
|
|
// to_hash
|
|
|
|
//
|
|
|
|
template<typename T>
|
2013-04-22 04:04:27 +00:00
|
|
|
SPROUT_CONSTEXPR std::size_t to_hash(T&& v);
|
|
|
|
|
|
|
|
//
|
|
|
|
// hash_value
|
|
|
|
//
|
|
|
|
template<typename T>
|
|
|
|
inline SPROUT_CONSTEXPR std::size_t
|
|
|
|
hash_value(T const& v);
|
2011-10-29 03:02:21 +00:00
|
|
|
|
2011-10-12 20:28:33 +00:00
|
|
|
//
|
|
|
|
// hash_combine
|
|
|
|
//
|
2013-02-04 01:24:23 +00:00
|
|
|
template<typename... Args>
|
|
|
|
inline SPROUT_CONSTEXPR std::size_t
|
2013-02-04 13:13:27 +00:00
|
|
|
hash_combine(std::size_t seed, Args const&... args);
|
2013-02-04 01:24:23 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// hash_values
|
|
|
|
//
|
|
|
|
template<typename... Args>
|
|
|
|
inline SPROUT_CONSTEXPR std::size_t
|
|
|
|
hash_values(Args const&... args);
|
2013-02-04 13:13:27 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// hash_range
|
|
|
|
//
|
2013-08-07 13:13:03 +00:00
|
|
|
template<typename InputIterator>
|
|
|
|
SPROUT_CONSTEXPR std::size_t hash_range(std::size_t seed, InputIterator first, InputIterator last);
|
|
|
|
template<typename InputIterator>
|
|
|
|
SPROUT_CONSTEXPR std::size_t hash_range(InputIterator first, InputIterator last);
|
2013-02-04 13:13:27 +00:00
|
|
|
template<typename InputRange>
|
|
|
|
SPROUT_CONSTEXPR std::size_t hash_range(std::size_t seed, InputRange const& rng);
|
|
|
|
template<typename InputRange>
|
|
|
|
SPROUT_CONSTEXPR std::size_t hash_range(InputRange const& rng);
|
2013-04-22 04:04:27 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// hash_value_traits
|
|
|
|
//
|
|
|
|
template<typename T>
|
|
|
|
struct hash_value_traits;
|
2011-10-12 20:28:33 +00:00
|
|
|
} // namespace sprout
|
|
|
|
|
|
|
|
#endif // #ifndef SPROUT_FUNCTIONAL_HASH_HASH_FWD_HPP
|