From Jason Turner

[saferecl.hp.holder.ctor]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp9dgoifd0/{from.md → to.md} +36 -0
tmp/tmp9dgoifd0/{from.md → to.md} RENAMED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ##### Constructors, destructor, and assignment <a id="saferecl.hp.holder.ctor">[[saferecl.hp.holder.ctor]]</a>
2
+
3
+ ``` cpp
4
+ hazard_pointer() noexcept;
5
+ ```
6
+
7
+ *Ensures:* `*this` is empty.
8
+
9
+ ``` cpp
10
+ hazard_pointer(hazard_pointer&& other) noexcept;
11
+ ```
12
+
13
+ *Ensures:* If `other` is empty, `*this` is empty. Otherwise, `*this`
14
+ owns the hazard pointer originally owned by `other`; `other` is empty.
15
+
16
+ ``` cpp
17
+ ~hazard_pointer();
18
+ ```
19
+
20
+ *Effects:* If `*this` is not empty, destroys the hazard pointer owned by
21
+ `*this`, thereby ending its current protection epoch.
22
+
23
+ ``` cpp
24
+ hazard_pointer& operator=(hazard_pointer&& other) noexcept;
25
+ ```
26
+
27
+ *Effects:* If `this == &other` is `true`, no effect. Otherwise, if
28
+ `*this` is not empty, destroys the hazard pointer owned by `*this`,
29
+ thereby ending its current protection epoch.
30
+
31
+ *Ensures:* If `other` was empty, `*this` is empty. Otherwise, `*this`
32
+ owns the hazard pointer originally owned by `other`. If `this != &other`
33
+ is `true`, `other` is empty.
34
+
35
+ *Returns:* `*this`.
36
+