hash_fwd.hpp 971 B

12345678910111213141516171819202122232425262728293031323334353637
  1. // Copyright 2005-2009 Daniel James.
  2. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  3. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  4. // Based on Peter Dimov's proposal
  5. // http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2005/n1756.pdf
  6. // issue 6.18.
  7. #if !defined(BOOST_FUNCTIONAL_HASH_FWD_HPP)
  8. #define BOOST_FUNCTIONAL_HASH_FWD_HPP
  9. #include <boost/config/workaround.hpp>
  10. #include <cstddef>
  11. #if defined(BOOST_HAS_PRAGMA_ONCE)
  12. #pragma once
  13. #endif
  14. namespace boost
  15. {
  16. template <class T> struct hash;
  17. template <class T> void hash_combine(std::size_t& seed, T const& v);
  18. template <class It> std::size_t hash_range(It, It);
  19. template <class It> void hash_range(std::size_t&, It, It);
  20. #if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x551))
  21. template <class T> inline std::size_t hash_range(T*, T*);
  22. template <class T> inline void hash_range(std::size_t&, T*, T*);
  23. #endif
  24. }
  25. #endif