File: hash_fwd.hpp

package info (click to toggle)
rdkit 202503.1-4
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 220,160 kB
  • sloc: cpp: 399,240; python: 77,453; ansic: 25,517; java: 8,173; javascript: 4,005; sql: 2,389; yacc: 1,565; lex: 1,263; cs: 1,081; makefile: 578; xml: 229; fortran: 183; sh: 105
file content (51 lines) | stat: -rw-r--r-- 1,240 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51

// Copyright 2005-2009 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(GBOOST_FUNCTIONAL_HASH_FWD_HPP)
#define GBOOST_FUNCTIONAL_HASH_FWD_HPP

#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif

#include <cstdint>
namespace std {
typedef std::uint32_t hash_result_t;
}

#include <boost/config.hpp>
#include <cstddef>
#include <boost/detail/workaround.hpp>

namespace gboost {
template <class T>
struct hash;

#if BOOST_WORKAROUND(BOOST_MSVC, < 1300)
template <class T>
void hash_combine(std::hash_result_t& seed, T& v);
#else
template <class T>
void hash_combine(std::hash_result_t& seed, T const& v);
#endif

template <class It>
std::hash_result_t hash_range(It, It);
template <class It>
void hash_range(std::hash_result_t&, It, It);

#if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x551))
template <class T>
inline std::hash_result_t hash_range(T*, T*);
template <class T>
inline void hash_range(std::hash_result_t&, T*, T*);
#endif
}  // namespace gboost

#endif