source: source/ariba/utility/transport/tcpip/protlib/llhashers.h@ 7536

Last change on this file since 7536 was 6927, checked in by mies, 15 years ago
File size: 2.0 KB
Line 
1/// ----------------------------------------*- mode: C++; -*--
2/// @file llhashers.h
3/// hash functions for long longs
4/// ----------------------------------------------------------
5/// $Id: llhashers.h 2872 2008-02-18 10:58:03Z bless $
6/// $HeadURL: https://svn.ipv6.tm.uka.de/nsis/protlib/trunk/include/llhashers.h $
7// ===========================================================
8//
9// Copyright (C) 2005-2007, all rights reserved by
10// - Institute of Telematics, Universitaet Karlsruhe (TH)
11//
12// More information and contact:
13// https://projekte.tm.uka.de/trac/NSIS
14//
15// This program is free software; you can redistribute it and/or modify
16// it under the terms of the GNU General Public License as published by
17// the Free Software Foundation; version 2 of the License
18//
19// This program is distributed in the hope that it will be useful,
20// but WITHOUT ANY WARRANTY; without even the implied warranty of
21// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22// GNU General Public License for more details.
23//
24// You should have received a copy of the GNU General Public License along
25// with this program; if not, write to the Free Software Foundation, Inc.,
26// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
27//
28// ===========================================================
29
30#ifndef PROTLIB_LL_HASHERS_H
31#define PROTLIB_LL_HASHERS_H
32
33#include <boost/functional/hash.hpp>
34
35/** @addtogroup hashers Hash function objects
36 *
37 * This file contains definitions of hash functions
38 * for long long (64 bit integers)
39 *
40 * @{
41 */
42
43namespace boost {
44/*
45/// long long int hasher
46template <> struct hash<long long> {
47 inline size_t operator()(long long i) const { return (size_t)i; }
48}; // end long long hasher
49
50/// unsigned long long int hasher
51template <> struct hash<unsigned long long> {
52 inline size_t operator()(unsigned long long i) const { return (size_t)i; }
53}; // end unsigned long long hasher
54*/
55} // end namespace __gnu_cxx
56
57
58//@}
59
60#endif
Note: See TracBrowser for help on using the repository browser.