std::hash (std::string, std::wstring, std::u16string, std::u32string)
From cppreference.com
Template:cpp/string/basic string/sidebar Template:ddcl list begin
Defined in header
<string>
template<> struct hash<std::string>;
template<> struct hash<std::wstring>;
template<> struct hash<std::u16string>;
template<> struct hash<std::u32string>;
Template:ddcl list end The template specializations of Template:cpp for the various string classes allow users to obtain hashes of strings.
Example
See also
(C++11) |
hash function object (class template) |