From Jason Turner

[atomics.types.memop]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp46smsug6/{from.md → to.md} +30 -0
tmp/tmp46smsug6/{from.md → to.md} RENAMED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ### Member operators common to integers and pointers to objects <a id="atomics.types.memop">[[atomics.types.memop]]</a>
2
+
3
+ ``` cpp
4
+ T operator++(int) volatile noexcept;
5
+ T operator++(int) noexcept;
6
+ ```
7
+
8
+ *Effects:* Equivalent to: `return fetch_add(1);`
9
+
10
+ ``` cpp
11
+ T operator--(int) volatile noexcept;
12
+ T operator--(int) noexcept;
13
+ ```
14
+
15
+ *Effects:* Equivalent to: `return fetch_sub(1);`
16
+
17
+ ``` cpp
18
+ T operator++() volatile noexcept;
19
+ T operator++() noexcept;
20
+ ```
21
+
22
+ *Effects:* Equivalent to: `return fetch_add(1) + 1;`
23
+
24
+ ``` cpp
25
+ T operator--() volatile noexcept;
26
+ T operator--() noexcept;
27
+ ```
28
+
29
+ *Effects:* Equivalent to: `return fetch_sub(1) - 1;`
30
+