tmp/tmpmrecjnkx/{from.md → to.md}
RENAMED
|
@@ -1,12 +1,18 @@
|
|
| 1 |
### Hash support <a id="basic.string.hash">[[basic.string.hash]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
template<> struct hash<string>;
|
|
|
|
| 5 |
template<> struct hash<u16string>;
|
| 6 |
template<> struct hash<u32string>;
|
| 7 |
template<> struct hash<wstring>;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
```
|
| 9 |
|
| 10 |
If `S` is one of these string types, `SV` is the corresponding string
|
| 11 |
view type, and `s` is an object of type `S`, then
|
| 12 |
`hash<S>()(s) == hash<SV>()(SV(s))`.
|
|
|
|
| 1 |
### Hash support <a id="basic.string.hash">[[basic.string.hash]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
template<> struct hash<string>;
|
| 5 |
+
template<> struct hash<u8string>;
|
| 6 |
template<> struct hash<u16string>;
|
| 7 |
template<> struct hash<u32string>;
|
| 8 |
template<> struct hash<wstring>;
|
| 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))`.
|