From Jason Turner

[indirect.hash]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpl_yj8m1d/{from.md → to.md} +15 -0
tmp/tmpl_yj8m1d/{from.md → to.md} RENAMED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### Hash support <a id="indirect.hash">[[indirect.hash]]</a>
2
+
3
+ ``` cpp
4
+ template<class T, class Allocator>
5
+ struct hash<indirect<T, Allocator>>;
6
+ ```
7
+
8
+ The specialization `hash<indirect<T, Allocator>>` is
9
+ enabled [[unord.hash]] if and only if `hash<T>` is enabled. When enabled
10
+ for an object `i` of type `indirect<T, Allocator>`,
11
+ `hash<indirect<T, Allocator>>()(i)` evaluates to either the same value
12
+ as `hash<T>()(*i)`, if `i` is not valueless; otherwise to an
13
+ *implementation-defined* value. The member functions are not guaranteed
14
+ to be `noexcept`.
15
+