]>
Dogcows Code - chaz/yoink/blob - Moof/HashTools.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_HASHTOOLS_HH_
13 #define _MOOF_HASHTOOLS_HH_
17 #include <stlplus/hash.hpp>
25 // generic hash function
26 unsigned operator()(const void* key
, int len
,
27 unsigned seed
= -1) const;
29 inline unsigned operator()(const std::string
& val
) const
31 return (*this)(val
.data(), val
.length());
34 inline unsigned operator()(int val
) const
43 #endif // _MOOF_HASHTOOLS_HH_
This page took 0.034013 seconds and 4 git commands to generate.