tmp/tmpp_fgfedj/{from.md → to.md}
RENAMED
|
@@ -1,11 +1,12 @@
|
|
| 1 |
### Class template `hash` <a id="unord.hash">[[unord.hash]]</a>
|
| 2 |
|
| 3 |
The unordered associative containers defined in [[unord]] use
|
| 4 |
specializations of the class template `hash` as the default hash
|
| 5 |
function. For all object types `Key` for which there exists a
|
| 6 |
-
specialization `hash<Key>`,
|
|
|
|
| 7 |
|
| 8 |
- satisfy the `Hash` requirements ([[hash.requirements]]), with `Key`
|
| 9 |
as the function call argument type, the `DefaultConstructible`
|
| 10 |
requirements (Table [[defaultconstructible]]), the `CopyAssignable`
|
| 11 |
requirements (Table [[copyassignable]]),
|
|
@@ -40,8 +41,8 @@ template <> struct hash<float>;
|
|
| 40 |
template <> struct hash<double>;
|
| 41 |
template <> struct hash<long double>;
|
| 42 |
template <class T> struct hash<T*>;
|
| 43 |
```
|
| 44 |
|
| 45 |
-
|
| 46 |
-
|
| 47 |
|
|
|
|
| 1 |
### Class template `hash` <a id="unord.hash">[[unord.hash]]</a>
|
| 2 |
|
| 3 |
The unordered associative containers defined in [[unord]] use
|
| 4 |
specializations of the class template `hash` as the default hash
|
| 5 |
function. For all object types `Key` for which there exists a
|
| 6 |
+
specialization `hash<Key>`, and for all enumeration types (
|
| 7 |
+
[[dcl.enum]]) `Key`, the instantiation `hash<Key>` shall:
|
| 8 |
|
| 9 |
- satisfy the `Hash` requirements ([[hash.requirements]]), with `Key`
|
| 10 |
as the function call argument type, the `DefaultConstructible`
|
| 11 |
requirements (Table [[defaultconstructible]]), the `CopyAssignable`
|
| 12 |
requirements (Table [[copyassignable]]),
|
|
|
|
| 41 |
template <> struct hash<double>;
|
| 42 |
template <> struct hash<long double>;
|
| 43 |
template <class T> struct hash<T*>;
|
| 44 |
```
|
| 45 |
|
| 46 |
+
The template specializations shall meet the requirements of class
|
| 47 |
+
template `hash` ([[unord.hash]]).
|
| 48 |
|