|
SlHelpers
|
Hash for string and string_view to be used in hashing containers. More...
#include <String.h>
Public Types | |
| using | is_transparent = void |
| For containers to know this is a transparent hash. | |
Public Member Functions | |
| auto | hash (std::string_view sv) const noexcept |
| Hash any kind of string using std::hash. | |
| size_t | operator() (const char *charp) const noexcept |
Hash charp. | |
| size_t | operator() (std::string_view sv) const noexcept |
Hash string_view sv. | |
| size_t | operator() (const std::string &s) const noexcept |
Hash string s. | |
Hash for string and string_view to be used in hashing containers.
It is to support find() to work on both string and string_view.
|
inlinenoexcept |