Namespaces
Variants

std::hash (std::string, std::wstring, std::u16string, std::u32string)

From cppreference.com
Revision as of 21:45, 21 March 2012 by Nate (talk | contribs) (std::hash for strings)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

Template:example cpp

See also

(C++11)
hash function object
(class template) [edit]