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