From Jason Turner

[variant.hash]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpzjbrq3dw/{from.md → to.md} +17 -0
tmp/tmpzjbrq3dw/{from.md → to.md} RENAMED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ### Hash support <a id="variant.hash">[[variant.hash]]</a>
2
+
3
+ ``` cpp
4
+ template <class... Types> struct hash<variant<Types...>>;
5
+ ```
6
+
7
+ The specialization `hash<variant<Types...>>` is
8
+ enabled ([[unord.hash]]) if and only if every specialization in
9
+ `hash<remove_const_t<Types>>...` is enabled. The member functions are
10
+ not guaranteed to be `noexcept`.
11
+
12
+ ``` cpp
13
+ template <> struct hash<monostate>;
14
+ ```
15
+
16
+ The specialization is enabled ([[unord.hash]]).
17
+