tmp/tmpkc6h9a44/{from.md → to.md}
RENAMED
|
@@ -2,12 +2,12 @@
|
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
template <> struct hash<type_index>;
|
| 5 |
```
|
| 6 |
|
| 7 |
-
|
| 8 |
-
|
| 9 |
`type_index`, `hash<type_index>()(index)` shall evaluate to the same
|
| 10 |
result as `index.hash_code()`.
|
| 11 |
|
| 12 |
<!-- Link reference definitions -->
|
| 13 |
[alg.sorting]: algorithms.md#alg.sorting
|
|
@@ -38,18 +38,18 @@ result as `index.hash_code()`.
|
|
| 38 |
[basic.fundamental]: basic.md#basic.fundamental
|
| 39 |
[basic.life]: basic.md#basic.life
|
| 40 |
[basic.stc.dynamic.safety]: basic.md#basic.stc.dynamic.safety
|
| 41 |
[basic.type.qualifier]: basic.md#basic.type.qualifier
|
| 42 |
[basic.types]: basic.md#basic.types
|
| 43 |
-
[bind]: #bind
|
| 44 |
[bitset.cons]: #bitset.cons
|
| 45 |
[bitset.hash]: #bitset.hash
|
| 46 |
[bitset.members]: #bitset.members
|
| 47 |
[bitset.operators]: #bitset.operators
|
| 48 |
[bitwise.operations]: #bitwise.operations
|
| 49 |
[c.malloc]: #c.malloc
|
| 50 |
[c.strings]: strings.md#c.strings
|
|
|
|
| 51 |
[class.abstract]: class.md#class.abstract
|
| 52 |
[class.derived]: class.md#class.derived
|
| 53 |
[class.dtor]: special.md#class.dtor
|
| 54 |
[class.virtual]: class.md#class.virtual
|
| 55 |
[comparisons]: #comparisons
|
|
@@ -85,10 +85,11 @@ result as `index.hash_code()`.
|
|
| 85 |
[forward]: #forward
|
| 86 |
[forward.iterators]: iterators.md#forward.iterators
|
| 87 |
[func.bind]: #func.bind
|
| 88 |
[func.bind.bind]: #func.bind.bind
|
| 89 |
[func.bind.isbind]: #func.bind.isbind
|
|
|
|
| 90 |
[func.bind.place]: #func.bind.place
|
| 91 |
[func.def]: #func.def
|
| 92 |
[func.memfn]: #func.memfn
|
| 93 |
[func.require]: #func.require
|
| 94 |
[func.wrap]: #func.wrap
|
|
@@ -104,10 +105,14 @@ result as `index.hash_code()`.
|
|
| 104 |
[func.wrap.func.targ]: #func.wrap.func.targ
|
| 105 |
[function.objects]: #function.objects
|
| 106 |
[hash.requirements]: library.md#hash.requirements
|
| 107 |
[input.iterators]: iterators.md#input.iterators
|
| 108 |
[intro.multithread]: intro.md#intro.multithread
|
|
|
|
|
|
|
|
|
|
|
|
|
| 109 |
[invalid.argument]: diagnostics.md#invalid.argument
|
| 110 |
[iostate.flags]: input.md#iostate.flags
|
| 111 |
[istream.formatted]: input.md#istream.formatted
|
| 112 |
[lessthancomparable]: #lessthancomparable
|
| 113 |
[logical.operations]: #logical.operations
|
|
@@ -193,10 +198,11 @@ result as `index.hash_code()`.
|
|
| 193 |
[time.duration]: #time.duration
|
| 194 |
[time.duration.arithmetic]: #time.duration.arithmetic
|
| 195 |
[time.duration.cast]: #time.duration.cast
|
| 196 |
[time.duration.comparisons]: #time.duration.comparisons
|
| 197 |
[time.duration.cons]: #time.duration.cons
|
|
|
|
| 198 |
[time.duration.nonmember]: #time.duration.nonmember
|
| 199 |
[time.duration.observer]: #time.duration.observer
|
| 200 |
[time.duration.special]: #time.duration.special
|
| 201 |
[time.general]: #time.general
|
| 202 |
[time.point]: #time.point
|
|
@@ -231,10 +237,11 @@ result as `index.hash_code()`.
|
|
| 231 |
[type.index.synopsis]: #type.index.synopsis
|
| 232 |
[uninitialized.copy]: #uninitialized.copy
|
| 233 |
[uninitialized.fill]: #uninitialized.fill
|
| 234 |
[uninitialized.fill.n]: #uninitialized.fill.n
|
| 235 |
[unique.ptr]: #unique.ptr
|
|
|
|
| 236 |
[unique.ptr.dltr]: #unique.ptr.dltr
|
| 237 |
[unique.ptr.dltr.dflt]: #unique.ptr.dltr.dflt
|
| 238 |
[unique.ptr.dltr.dflt1]: #unique.ptr.dltr.dflt1
|
| 239 |
[unique.ptr.dltr.general]: #unique.ptr.dltr.general
|
| 240 |
[unique.ptr.runtime]: #unique.ptr.runtime
|
|
@@ -277,10 +284,11 @@ result as `index.hash_code()`.
|
|
| 277 |
[util.smartptr.weak.spec]: #util.smartptr.weak.spec
|
| 278 |
[util.smartptr.weakptr]: #util.smartptr.weakptr
|
| 279 |
[utilities]: #utilities
|
| 280 |
[utilities.general]: #utilities.general
|
| 281 |
[utility]: #utility
|
|
|
|
| 282 |
[utility.swap]: #utility.swap
|
| 283 |
|
| 284 |
[^1]: `pointer_safety::preferred` might be returned to indicate that a
|
| 285 |
leak detector is running so that the program can avoid spurious leak
|
| 286 |
reports.
|
|
|
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
template <> struct hash<type_index>;
|
| 5 |
```
|
| 6 |
|
| 7 |
+
The template specialization shall meet the requirements of class
|
| 8 |
+
template `hash` ([[unord.hash]]). For an object `index` of type
|
| 9 |
`type_index`, `hash<type_index>()(index)` shall evaluate to the same
|
| 10 |
result as `index.hash_code()`.
|
| 11 |
|
| 12 |
<!-- Link reference definitions -->
|
| 13 |
[alg.sorting]: algorithms.md#alg.sorting
|
|
|
|
| 38 |
[basic.fundamental]: basic.md#basic.fundamental
|
| 39 |
[basic.life]: basic.md#basic.life
|
| 40 |
[basic.stc.dynamic.safety]: basic.md#basic.stc.dynamic.safety
|
| 41 |
[basic.type.qualifier]: basic.md#basic.type.qualifier
|
| 42 |
[basic.types]: basic.md#basic.types
|
|
|
|
| 43 |
[bitset.cons]: #bitset.cons
|
| 44 |
[bitset.hash]: #bitset.hash
|
| 45 |
[bitset.members]: #bitset.members
|
| 46 |
[bitset.operators]: #bitset.operators
|
| 47 |
[bitwise.operations]: #bitwise.operations
|
| 48 |
[c.malloc]: #c.malloc
|
| 49 |
[c.strings]: strings.md#c.strings
|
| 50 |
+
[class]: class.md#class
|
| 51 |
[class.abstract]: class.md#class.abstract
|
| 52 |
[class.derived]: class.md#class.derived
|
| 53 |
[class.dtor]: special.md#class.dtor
|
| 54 |
[class.virtual]: class.md#class.virtual
|
| 55 |
[comparisons]: #comparisons
|
|
|
|
| 85 |
[forward]: #forward
|
| 86 |
[forward.iterators]: iterators.md#forward.iterators
|
| 87 |
[func.bind]: #func.bind
|
| 88 |
[func.bind.bind]: #func.bind.bind
|
| 89 |
[func.bind.isbind]: #func.bind.isbind
|
| 90 |
+
[func.bind.isplace]: #func.bind.isplace
|
| 91 |
[func.bind.place]: #func.bind.place
|
| 92 |
[func.def]: #func.def
|
| 93 |
[func.memfn]: #func.memfn
|
| 94 |
[func.require]: #func.require
|
| 95 |
[func.wrap]: #func.wrap
|
|
|
|
| 105 |
[func.wrap.func.targ]: #func.wrap.func.targ
|
| 106 |
[function.objects]: #function.objects
|
| 107 |
[hash.requirements]: library.md#hash.requirements
|
| 108 |
[input.iterators]: iterators.md#input.iterators
|
| 109 |
[intro.multithread]: intro.md#intro.multithread
|
| 110 |
+
[intseq]: #intseq
|
| 111 |
+
[intseq.general]: #intseq.general
|
| 112 |
+
[intseq.intseq]: #intseq.intseq
|
| 113 |
+
[intseq.make]: #intseq.make
|
| 114 |
[invalid.argument]: diagnostics.md#invalid.argument
|
| 115 |
[iostate.flags]: input.md#iostate.flags
|
| 116 |
[istream.formatted]: input.md#istream.formatted
|
| 117 |
[lessthancomparable]: #lessthancomparable
|
| 118 |
[logical.operations]: #logical.operations
|
|
|
|
| 198 |
[time.duration]: #time.duration
|
| 199 |
[time.duration.arithmetic]: #time.duration.arithmetic
|
| 200 |
[time.duration.cast]: #time.duration.cast
|
| 201 |
[time.duration.comparisons]: #time.duration.comparisons
|
| 202 |
[time.duration.cons]: #time.duration.cons
|
| 203 |
+
[time.duration.literals]: #time.duration.literals
|
| 204 |
[time.duration.nonmember]: #time.duration.nonmember
|
| 205 |
[time.duration.observer]: #time.duration.observer
|
| 206 |
[time.duration.special]: #time.duration.special
|
| 207 |
[time.general]: #time.general
|
| 208 |
[time.point]: #time.point
|
|
|
|
| 237 |
[type.index.synopsis]: #type.index.synopsis
|
| 238 |
[uninitialized.copy]: #uninitialized.copy
|
| 239 |
[uninitialized.fill]: #uninitialized.fill
|
| 240 |
[uninitialized.fill.n]: #uninitialized.fill.n
|
| 241 |
[unique.ptr]: #unique.ptr
|
| 242 |
+
[unique.ptr.create]: #unique.ptr.create
|
| 243 |
[unique.ptr.dltr]: #unique.ptr.dltr
|
| 244 |
[unique.ptr.dltr.dflt]: #unique.ptr.dltr.dflt
|
| 245 |
[unique.ptr.dltr.dflt1]: #unique.ptr.dltr.dflt1
|
| 246 |
[unique.ptr.dltr.general]: #unique.ptr.dltr.general
|
| 247 |
[unique.ptr.runtime]: #unique.ptr.runtime
|
|
|
|
| 284 |
[util.smartptr.weak.spec]: #util.smartptr.weak.spec
|
| 285 |
[util.smartptr.weakptr]: #util.smartptr.weakptr
|
| 286 |
[utilities]: #utilities
|
| 287 |
[utilities.general]: #utilities.general
|
| 288 |
[utility]: #utility
|
| 289 |
+
[utility.exchange]: #utility.exchange
|
| 290 |
[utility.swap]: #utility.swap
|
| 291 |
|
| 292 |
[^1]: `pointer_safety::preferred` might be returned to indicate that a
|
| 293 |
leak detector is running so that the program can avoid spurious leak
|
| 294 |
reports.
|