1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2024-11-12 21:09:01 +00:00
Sprout/sprout/functional/hash/hash_fwd.hpp

68 lines
1.8 KiB
C++
Raw Normal View History

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>
#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>
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
//
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;
2011-10-12 20:28:33 +00:00
} // namespace sprout
#endif // #ifndef SPROUT_FUNCTIONAL_HASH_HASH_FWD_HPP