HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Strutil::StringHash Class Reference

#include <strutil.h>

Public Member Functions

size_t operator() (string_view s) const
 

Detailed Description

C++ functor wrapper class for using strhash for unordered_map or unordered_set. The way this is used, in conjunction with StringEqual, to build an efficient hash map for char*'s or std::string's is as follows:

unordered_map <const char *, Key, Strutil::StringHash, Strutil::StringEqual>

Definition at line 736 of file strutil.h.

Member Function Documentation

size_t Strutil::StringHash::operator() ( string_view  s) const
inline

Definition at line 738 of file strutil.h.


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