tmp/tmpz6jhhcue/{from.md → to.md}
RENAMED
|
@@ -1,18 +1,13 @@
|
|
| 1 |
### Hash support <a id="basic.string.hash">[[basic.string.hash]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
-
template<> struct hash<
|
| 5 |
-
template<> struct hash<
|
| 6 |
-
template<> struct hash<
|
| 7 |
-
template<> struct hash<
|
| 8 |
-
template<> struct hash<
|
| 9 |
-
template<> struct hash<pmr::string>;
|
| 10 |
-
template<> struct hash<pmr::u8string>;
|
| 11 |
-
template<> struct hash<pmr::u16string>;
|
| 12 |
-
template<> struct hash<pmr::u32string>;
|
| 13 |
-
template<> struct hash<pmr::wstring>;
|
| 14 |
```
|
| 15 |
|
| 16 |
If `S` is one of these string types, `SV` is the corresponding string
|
| 17 |
view type, and `s` is an object of type `S`, then
|
| 18 |
`hash<S>()(s) == hash<SV>()(SV(s))`.
|
|
|
|
| 1 |
### Hash support <a id="basic.string.hash">[[basic.string.hash]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
+
template<class A> struct hash<basic_string<char, char_traits<char>, A>>;
|
| 5 |
+
template<class A> struct hash<basic_string<char8_t, char_traits<char8_t>, A>>;
|
| 6 |
+
template<class A> struct hash<basic_string<char16_t, char_traits<char16_t>, A>>;
|
| 7 |
+
template<class A> struct hash<basic_string<char32_t, char_traits<char32_t>, A>>;
|
| 8 |
+
template<class A> struct hash<basic_string<wchar_t, char_traits<wchar_t>, A>>;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
```
|
| 10 |
|
| 11 |
If `S` is one of these string types, `SV` is the corresponding string
|
| 12 |
view type, and `s` is an object of type `S`, then
|
| 13 |
`hash<S>()(s) == hash<SV>()(SV(s))`.
|