Files
2025-10-25 03:02:53 +03:00

900 B

[basic.string.hash]

27 Strings library [strings]

27.4 String classes [string.classes]

27.4.6 Hash support [basic.string.hash]

🔗

template<class A> struct hash<basic_string<char, char_traits<char>, A>>; template<class A> struct hash<basic_string<char8_t, char_traits<char8_t>, A>>; template<class A> struct hash<basic_string<char16_t, char_traits<char16_t>, A>>; template<class A> struct hash<basic_string<char32_t, char_traits<char32_t>, A>>; template<class A> struct hash<basic_string<wchar_t, char_traits<wchar_t>, A>>;

1

#

If S is one of these string types,SV is the corresponding string view type, ands is an object of type S, then hash()(s) == hash()(SV(s)).