Kindfield
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Friends Pages
Public Member Functions | List of all members
ihash Struct Reference

#include <hf.h>

Inheritance diagram for ihash:
Inheritance graph
[legend]
Collaboration diagram for ihash:
Collaboration graph
[legend]

Public Member Functions

std::size_t operator() (std::string const &x) const
 

Detailed Description

Definition at line 21 of file hf.h.

Member Function Documentation

std::size_t ihash::operator() ( std::string const &  x) const
inline

Definition at line 24 of file hf.h.

25  {
26  std::size_t seed = 0;
27  std::locale locale;
28 
29  for(std::string::const_iterator it = x.begin();
30  it != x.end(); ++it)
31  {
32  boost::hash_combine(seed, std::toupper(*it, locale));
33  }
34 
35  return seed;
36  }

The documentation for this struct was generated from the following file: