mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2024-11-29 01:03:45 +00:00
67 lines
1.8 KiB
C++
67 lines
1.8 KiB
C++
/*=============================================================================
|
|
Copyright (c) 2011-2017 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 <sprout/config.hpp>
|
|
#include <sprout/workaround/std/cstddef.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
|