# std::hash (std::experimental::string_view, std::experimental::wstring_view, std::experimental::u16string_view, std::experimental::u32string_view)

> C++ Atlas: `cppatlas.com/w/cpp/experimental/basic_string_view/hash` | Source: https://en.cppreference.com/w/cpp/experimental/basic_string_view/hash | Domain: Technical specifications | Standards: C++11

Template specializations of std::hash for the various view classes for hashing views.

## Official Specification Summary (cppreference)

```cpp
// Defined in header <experimental/string_view>

template<> struct hash<std::experimental::string_view>;
template<> struct hash<std::experimental::wstring_view>;
template<> struct hash<std::experimental::u16string_view>;
template<> struct hash<std::experimental::u32string_view>; // (library fundamentals TS)
```

Template specializations of `std::hash` for the various view classes for hashing views.

### See also

- [`hash`](https://en.cppreference.com/w/cpp/utility/hash) (C++11): hash function object (class template)

---
Attribution: content from https://en.cppreference.com/w/cpp/experimental/basic_string_view/hash (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.