From Jason Turner

[valarray.unary]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp2lror6wq/{from.md → to.md} +11 -12
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<T> operator+() const;
5
- valarray<T> operator-() const;
6
- valarray<T> operator~() const;
7
  valarray<bool> operator!() const;
8
  ```
9
 
10
- Each of these operators may only be instantiated for a type `T` to which
11
- the indicated operator can be applied and for which the indicated
12
- operator returns a value which is of type `T` (`bool` for `operator!`)
13
- or which may be unambiguously implicitly converted to type `T` (`bool`
14
- for `operator!`).
15
 
16
- Each of these operators returns an array whose length is equal to the
17
- length of the array. Each element of the returned array is initialized
18
- with the result of applying the indicated operator to the corresponding
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