tmp/tmp48lgoy3g/{from.md → to.md}
RENAMED
|
@@ -1,26 +1,38 @@
|
|
| 1 |
#### Member operators common to integers and pointers to objects <a id="atomics.ref.memop">[[atomics.ref.memop]]</a>
|
| 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
``` cpp
|
| 4 |
-
value_type operator++(int) const noexcept;
|
| 5 |
```
|
| 6 |
|
|
|
|
|
|
|
| 7 |
*Effects:* Equivalent to: `return fetch_add(1);`
|
| 8 |
|
| 9 |
``` cpp
|
| 10 |
-
value_type operator--(int) const noexcept;
|
| 11 |
```
|
| 12 |
|
|
|
|
|
|
|
| 13 |
*Effects:* Equivalent to: `return fetch_sub(1);`
|
| 14 |
|
| 15 |
``` cpp
|
| 16 |
-
value_type operator++() const noexcept;
|
| 17 |
```
|
| 18 |
|
|
|
|
|
|
|
| 19 |
*Effects:* Equivalent to: `return fetch_add(1) + 1;`
|
| 20 |
|
| 21 |
``` cpp
|
| 22 |
-
value_type operator--() const noexcept;
|
| 23 |
```
|
| 24 |
|
|
|
|
|
|
|
| 25 |
*Effects:* Equivalent to: `return fetch_sub(1) - 1;`
|
| 26 |
|
|
|
|
| 1 |
#### Member operators common to integers and pointers to objects <a id="atomics.ref.memop">[[atomics.ref.memop]]</a>
|
| 2 |
|
| 3 |
+
Let `referred-type` be `pointer-type` for the specializations in
|
| 4 |
+
[[atomics.ref.pointer]] and be `integral-type` for the specializations
|
| 5 |
+
in [[atomics.ref.int]].
|
| 6 |
+
|
| 7 |
``` cpp
|
| 8 |
+
constexpr value_type operator++(int) const noexcept;
|
| 9 |
```
|
| 10 |
|
| 11 |
+
*Constraints:* `is_const_v<`*`referred-type`*`>` is `false`.
|
| 12 |
+
|
| 13 |
*Effects:* Equivalent to: `return fetch_add(1);`
|
| 14 |
|
| 15 |
``` cpp
|
| 16 |
+
constexpr value_type operator--(int) const noexcept;
|
| 17 |
```
|
| 18 |
|
| 19 |
+
*Constraints:* `is_const_v<`*`referred-type`*`>` is `false`.
|
| 20 |
+
|
| 21 |
*Effects:* Equivalent to: `return fetch_sub(1);`
|
| 22 |
|
| 23 |
``` cpp
|
| 24 |
+
constexpr value_type operator++() const noexcept;
|
| 25 |
```
|
| 26 |
|
| 27 |
+
*Constraints:* `is_const_v<`*`referred-type`*`>` is `false`.
|
| 28 |
+
|
| 29 |
*Effects:* Equivalent to: `return fetch_add(1) + 1;`
|
| 30 |
|
| 31 |
``` cpp
|
| 32 |
+
constexpr value_type operator--() const noexcept;
|
| 33 |
```
|
| 34 |
|
| 35 |
+
*Constraints:* `is_const_v<`*`referred-type`*`>` is `false`.
|
| 36 |
+
|
| 37 |
*Effects:* Equivalent to: `return fetch_sub(1) - 1;`
|
| 38 |
|