TPIE

2362a60
tpie::hash< std::string > Struct Template Reference

Default hashing function for std::string. More...

#include <tpie/hash.h>

Public Member Functions

size_t operator() (const std::string &s) const
 Calculate string hash by using std::string::c_str(). More...
 

Public Attributes

hash< const char * > h
 

Detailed Description

template<>
struct tpie::hash< std::string >

Default hashing function for std::string.

Definition at line 102 of file hash.h.

Member Function Documentation

size_t tpie::hash< std::string >::operator() ( const std::string &  s) const
inline

Calculate string hash by using std::string::c_str().

Parameters
sString to hash.

Definition at line 108 of file hash.h.

108  {
109  return h(s.c_str());
110  }

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