mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2024-12-25 21:35:41 +00:00
67 lines
1.7 KiB
C++
67 lines
1.7 KiB
C++
/*=============================================================================
|
|
Copyright (c) 2011-2013 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_FWD_HPP
|
|
#define SPROUT_FUNCTIONAL_HASH_HASH_FWD_HPP
|
|
|
|
#include <cstddef>
|
|
#include <sprout/config.hpp>
|
|
|
|
namespace sprout {
|
|
//
|
|
// hash
|
|
//
|
|
template<typename T>
|
|
struct hash;
|
|
|
|
//
|
|
// to_hash
|
|
//
|
|
template<typename T>
|
|
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);
|
|
|
|
//
|
|
// hash_combine
|
|
//
|
|
template<typename... Args>
|
|
inline SPROUT_CONSTEXPR std::size_t
|
|
hash_combine(std::size_t seed, Args const&... args);
|
|
|
|
//
|
|
// hash_values
|
|
//
|
|
template<typename... Args>
|
|
inline SPROUT_CONSTEXPR std::size_t
|
|
hash_values(Args const&... args);
|
|
|
|
//
|
|
// hash_range
|
|
//
|
|
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);
|
|
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);
|
|
|
|
//
|
|
// hash_value_traits
|
|
//
|
|
template<typename T>
|
|
struct hash_value_traits;
|
|
} // namespace sprout
|
|
|
|
#endif // #ifndef SPROUT_FUNCTIONAL_HASH_HASH_FWD_HPP
|