From c399cf6a38f30d788c6a16556f028d12c5b19c22 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Tue, 13 Sep 2022 20:10:35 +0300 Subject: [PATCH] Add traits to hash_fwd.hpp --- include/boost/container_hash/hash_fwd.hpp | 25 ++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/include/boost/container_hash/hash_fwd.hpp b/include/boost/container_hash/hash_fwd.hpp index 15d402f..6311d12 100644 --- a/include/boost/container_hash/hash_fwd.hpp +++ b/include/boost/container_hash/hash_fwd.hpp @@ -10,15 +10,26 @@ namespace boost { - template struct hash; - template void hash_combine(std::size_t& seed, T const& v); +namespace container_hash +{ - template std::size_t hash_range(It, It); - template void hash_range(std::size_t&, It, It); +template struct is_range; +template struct is_contiguous_range; +template struct is_unordered_range; - template std::size_t hash_unordered_range(It, It); - template void hash_unordered_range(std::size_t&, It, It); -} +} // namespace container_hash + +template struct hash; + +template void hash_combine( std::size_t& seed, T const& v ); + +template std::size_t hash_range( It, It ); +template void hash_range( std::size_t&, It, It ); + +template std::size_t hash_unordered_range( It, It ); +template void hash_unordered_range( std::size_t&, It, It ); + +} // namespace boost #endif // #ifndef BOOST_FUNCTIONAL_HASH_FWD_HPP