hash< std::string const > Struct Template Reference

The following three are already defined in the std::tr1 namespace No idea why the forth variant isn't declared. More...

#include <hash_map_unordered_map.h>

List of all members.

Public Member Functions

size_t operator() (const std::string &x) const
 Return the hash value.


Detailed Description

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

The following three are already defined in the std::tr1 namespace No idea why the forth variant isn't declared.

. All I know is that cli fails to link libBIE.so because of it.

template<> struct hash<std::string> { size_t operator()(const std::string& x) const { return hash<const char*>() ( x.c_str() ); } };

template<> struct hash<std::string> { size_t operator()(const std::string& x) const { return hash<const char*>() ( x.c_str() ); } };

template<> struct hash<std::string const> { size_t operator()(const std::string& x) const { return hash<const char*>()( x.c_str() ); } }; Hash function for a string key


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

Send suggestions, questions, and feedback to WEINBERG at ASTRO dot UMASS dot EDU.
Documentation generated at Fri Mar 26 00:35:12 2010 by doxygen