mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
fix adapt interface: container, tuple, hash, generator
This commit is contained in:
parent
61720b72c3
commit
74e0c8acd6
36 changed files with 975 additions and 1061 deletions
|
@ -15,7 +15,14 @@ namespace sprout {
|
|||
// to_hash
|
||||
//
|
||||
template<typename T>
|
||||
SPROUT_CONSTEXPR std::size_t to_hash(T const& v);
|
||||
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
|
||||
|
@ -42,6 +49,12 @@ namespace sprout {
|
|||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue