tmp/tmpvqhzncy8/{from.md → to.md}
RENAMED
|
@@ -1,12 +1,13 @@
|
|
| 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 |
-
|
| 11 |
-
|
|
|
|
| 12 |
|
|
|
|
| 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))`.
|
| 13 |
|