forked from boostorg/container_hash
Move hash_fwd into the hash subdirectory.
I should have done this in the last release. But now all of the hash implementation is in the hash subdirectory. [SVN r51645]
This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
#if !defined(BOOST_FUNCTIONAL_HASH_HASH_HPP)
|
#if !defined(BOOST_FUNCTIONAL_HASH_HASH_HPP)
|
||||||
#define BOOST_FUNCTIONAL_HASH_HASH_HPP
|
#define BOOST_FUNCTIONAL_HASH_HASH_HPP
|
||||||
|
|
||||||
#include <boost/functional/hash_fwd.hpp>
|
#include <boost/functional/hash/hash_fwd.hpp>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <boost/functional/hash/detail/hash_float.hpp>
|
#include <boost/functional/hash/detail/hash_float.hpp>
|
||||||
#include <boost/detail/container_fwd.hpp>
|
#include <boost/detail/container_fwd.hpp>
|
||||||
|
40
include/boost/functional/hash/hash_fwd.hpp
Normal file
40
include/boost/functional/hash/hash_fwd.hpp
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
|
||||||
|
// Copyright 2005-2008 Daniel James.
|
||||||
|
// 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)
|
||||||
|
|
||||||
|
// Based on Peter Dimov's proposal
|
||||||
|
// http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2005/n1756.pdf
|
||||||
|
// issue 6.18.
|
||||||
|
|
||||||
|
#if !defined(BOOST_FUNCTIONAL_HASH_FWD_HPP)
|
||||||
|
#define BOOST_FUNCTIONAL_HASH_FWD_HPP
|
||||||
|
|
||||||
|
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
|
||||||
|
# pragma once
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <boost/config.hpp>
|
||||||
|
#include <cstddef>
|
||||||
|
#include <boost/detail/workaround.hpp>
|
||||||
|
|
||||||
|
namespace boost
|
||||||
|
{
|
||||||
|
template <class T> struct hash;
|
||||||
|
|
||||||
|
#if BOOST_WORKAROUND(BOOST_MSVC, < 1300)
|
||||||
|
template <class T> void hash_combine(std::size_t& seed, T& v);
|
||||||
|
#else
|
||||||
|
template <class T> void hash_combine(std::size_t& seed, T const& v);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
template <class It> std::size_t hash_range(It, It);
|
||||||
|
template <class It> void hash_range(std::size_t&, It, It);
|
||||||
|
|
||||||
|
#if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x551))
|
||||||
|
template <class T> inline std::size_t hash_range(T*, T*);
|
||||||
|
template <class T> inline void hash_range(std::size_t&, T*, T*);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
@@ -7,34 +7,5 @@
|
|||||||
// http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2005/n1756.pdf
|
// http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2005/n1756.pdf
|
||||||
// issue 6.18.
|
// issue 6.18.
|
||||||
|
|
||||||
#if !defined(BOOST_FUNCTIONAL_HASH_FWD_HPP)
|
#include <boost/functional/hash/hash_fwd.hpp>
|
||||||
#define BOOST_FUNCTIONAL_HASH_FWD_HPP
|
|
||||||
|
|
||||||
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
|
|
||||||
# pragma once
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <boost/config.hpp>
|
|
||||||
#include <cstddef>
|
|
||||||
#include <boost/detail/workaround.hpp>
|
|
||||||
|
|
||||||
namespace boost
|
|
||||||
{
|
|
||||||
template <class T> struct hash;
|
|
||||||
|
|
||||||
#if BOOST_WORKAROUND(BOOST_MSVC, < 1300)
|
|
||||||
template <class T> void hash_combine(std::size_t& seed, T& v);
|
|
||||||
#else
|
|
||||||
template <class T> void hash_combine(std::size_t& seed, T const& v);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
template <class It> std::size_t hash_range(It, It);
|
|
||||||
template <class It> void hash_range(std::size_t&, It, It);
|
|
||||||
|
|
||||||
#if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x551))
|
|
||||||
template <class T> inline std::size_t hash_range(T*, T*);
|
|
||||||
template <class T> inline void hash_range(std::size_t&, T*, T*);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
Reference in New Issue
Block a user