tmp/tmp2lror6wq/{from.md → to.md}
RENAMED
|
@@ -1,20 +1,19 @@
|
|
| 1 |
#### `valarray` unary operators <a id="valarray.unary">[[valarray.unary]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
-
valarray
|
| 5 |
-
valarray
|
| 6 |
-
valarray
|
| 7 |
valarray<bool> operator!() const;
|
| 8 |
```
|
| 9 |
|
| 10 |
-
Each of these operators may only be instantiated for a type
|
| 11 |
-
the indicated operator can be applied and for which the
|
| 12 |
-
operator returns a value which is of type `T` (`bool` for
|
| 13 |
-
or which may be unambiguously implicitly converted to type
|
| 14 |
-
for `operator!`).
|
| 15 |
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
element of the array.
|
| 20 |
|
|
|
|
| 1 |
#### `valarray` unary operators <a id="valarray.unary">[[valarray.unary]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
+
valarray operator+() const;
|
| 5 |
+
valarray operator-() const;
|
| 6 |
+
valarray operator~() const;
|
| 7 |
valarray<bool> operator!() const;
|
| 8 |
```
|
| 9 |
|
| 10 |
+
*Requires:* Each of these operators may only be instantiated for a type
|
| 11 |
+
`T` to which the indicated operator can be applied and for which the
|
| 12 |
+
indicated operator returns a value which is of type `T` (`bool` for
|
| 13 |
+
`operator!`) or which may be unambiguously implicitly converted to type
|
| 14 |
+
`T` (`bool` for `operator!`).
|
| 15 |
|
| 16 |
+
*Returns:* A `valarray` whose length is `size()`. Each element of the
|
| 17 |
+
returned array is initialized with the result of applying the indicated
|
| 18 |
+
operator to the corresponding element of the array.
|
|
|
|
| 19 |
|