From Jason Turner

[basic.string.hash]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpz6jhhcue/{from.md → to.md} +5 -10
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<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))`.
 
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))`.