[string.view.hash]

# 27 Strings library [[strings]](./#strings)

## 27.3 String view classes [[string.view]](string.view#hash)

### 27.3.6 Hash support [string.view.hash]

[ð](#lib:hash,string_view)

`template<> struct hash<string_view>;
template<> struct hash<u8string_view>;
template<> struct hash<u16string_view>;
template<> struct hash<u32string_view>;
template<> struct hash<wstring_view>;
`

[1](#1)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/strings.tex#L1689)

The specialization is enabled ([[unord.hash]](unord.hash "22.10.19 Class template hash"))[.](#1.sentence-1)

[*Note [1](#note-1)*:

The hash value of a string view object is equal to the hash value of
the corresponding string object ([[basic.string.hash]](basic.string.hash "27.4.6 Hash support"))[.](#1.sentence-2)

â *end note*]
