]>
Dogcows Code - chaz/yoink/blob - src/moof/hash.hh
2 /*] Copyright (c) 2009-2010, Charles McGarvey [**************************
3 **] All rights reserved.
7 * Distributable under the terms and conditions of the 2-clause BSD license;
8 * see the file COPYING for a complete text of the license.
10 **************************************************************************/
12 #ifndef _MOOF_HASH_HH_
13 #define _MOOF_HASH_HH_
17 * Hash tables and functions.
22 #include <stlplus/containers/hash.hpp>
33 // generic hash function
34 unsigned operator () (const void* key
, int len
,
35 unsigned seed
= -1) const;
37 unsigned operator () (const std::string
& val
) const
39 return (*this)(val
.data(), val
.length());
43 unsigned operator () (T val
) const
45 return static_cast<unsigned>(val
);
52 #endif // _MOOF_HASH_HH_
This page took 0.039319 seconds and 4 git commands to generate.