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: