From Jason Turner

[atomics.types.memop]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp2i3mqfr_/{from.md → to.md} +20 -8
tmp/tmp2i3mqfr_/{from.md → to.md} RENAMED
@@ -1,30 +1,42 @@
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
 
 
1
  ### Member operators common to integers and pointers to objects <a id="atomics.types.memop">[[atomics.types.memop]]</a>
2
 
3
  ``` cpp
4
+ value_type operator++(int) volatile noexcept;
5
+ value_type operator++(int) noexcept;
6
  ```
7
 
8
+ *Constraints:* For the `volatile` overload of this function,
9
+ `is_always_lock_free` is `true`.
10
+
11
  *Effects:* Equivalent to: `return fetch_add(1);`
12
 
13
  ``` cpp
14
+ value_type operator--(int) volatile noexcept;
15
+ value_type operator--(int) noexcept;
16
  ```
17
 
18
+ *Constraints:* For the `volatile` overload of this function,
19
+ `is_always_lock_free` is `true`.
20
+
21
  *Effects:* Equivalent to: `return fetch_sub(1);`
22
 
23
  ``` cpp
24
+ value_type operator++() volatile noexcept;
25
+ value_type operator++() noexcept;
26
  ```
27
 
28
+ *Constraints:* For the `volatile` overload of this function,
29
+ `is_always_lock_free` is `true`.
30
+
31
  *Effects:* Equivalent to: `return fetch_add(1) + 1;`
32
 
33
  ``` cpp
34
+ value_type operator--() volatile noexcept;
35
+ value_type operator--() noexcept;
36
  ```
37
 
38
+ *Constraints:* For the `volatile` overload of this function,
39
+ `is_always_lock_free` is `true`.
40
+
41
  *Effects:* Equivalent to: `return fetch_sub(1) - 1;`
42