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