tmp/tmp20sd6e2p/{from.md → to.md}
RENAMED
|
@@ -21,22 +21,20 @@ template<class T> valarray<T> operator<<
|
|
| 21 |
(const valarray<T>&, const valarray<T>&);
|
| 22 |
template<class T> valarray<T> operator>>
|
| 23 |
(const valarray<T>&, const valarray<T>&);
|
| 24 |
```
|
| 25 |
|
| 26 |
-
Each of these operators may only be instantiated for a type
|
| 27 |
-
the indicated operator can be applied and for which the
|
| 28 |
-
operator returns a value which is of type `T` or which can be
|
| 29 |
-
unambiguously implicitly converted to type `T`.
|
|
|
|
| 30 |
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
If the argument arrays do not have the same length, the behavior is
|
| 37 |
-
undefined.
|
| 38 |
|
| 39 |
``` cpp
|
| 40 |
template<class T> valarray<T> operator* (const valarray<T>&, const T&);
|
| 41 |
template<class T> valarray<T> operator* (const T&, const valarray<T>&);
|
| 42 |
template<class T> valarray<T> operator/ (const valarray<T>&, const T&);
|
|
@@ -57,15 +55,15 @@ template<class T> valarray<T> operator<<(const valarray<T>&, const T&);
|
|
| 57 |
template<class T> valarray<T> operator<<(const T&, const valarray<T>&);
|
| 58 |
template<class T> valarray<T> operator>>(const valarray<T>&, const T&);
|
| 59 |
template<class T> valarray<T> operator>>(const T&, const valarray<T>&);
|
| 60 |
```
|
| 61 |
|
| 62 |
-
Each of these operators may only be instantiated for a type
|
| 63 |
-
the indicated operator can be applied and for which the
|
| 64 |
-
operator returns a value which is of type `T` or which can be
|
| 65 |
unambiguously implicitly converted to type `T`.
|
| 66 |
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
|
|
|
|
| 21 |
(const valarray<T>&, const valarray<T>&);
|
| 22 |
template<class T> valarray<T> operator>>
|
| 23 |
(const valarray<T>&, const valarray<T>&);
|
| 24 |
```
|
| 25 |
|
| 26 |
+
*Requires:* Each of these operators may only be instantiated for a type
|
| 27 |
+
`T` to which the indicated operator can be applied and for which the
|
| 28 |
+
indicated operator returns a value which is of type `T` or which can be
|
| 29 |
+
unambiguously implicitly converted to type `T`. The argument arrays have
|
| 30 |
+
the same length.
|
| 31 |
|
| 32 |
+
*Returns:* A `valarray` whose length is equal to the lengths of the
|
| 33 |
+
argument arrays. Each element of the returned array is initialized with
|
| 34 |
+
the result of applying the indicated operator to the corresponding
|
| 35 |
+
elements of the argument arrays.
|
|
|
|
|
|
|
|
|
|
| 36 |
|
| 37 |
``` cpp
|
| 38 |
template<class T> valarray<T> operator* (const valarray<T>&, const T&);
|
| 39 |
template<class T> valarray<T> operator* (const T&, const valarray<T>&);
|
| 40 |
template<class T> valarray<T> operator/ (const valarray<T>&, const T&);
|
|
|
|
| 55 |
template<class T> valarray<T> operator<<(const T&, const valarray<T>&);
|
| 56 |
template<class T> valarray<T> operator>>(const valarray<T>&, const T&);
|
| 57 |
template<class T> valarray<T> operator>>(const T&, const valarray<T>&);
|
| 58 |
```
|
| 59 |
|
| 60 |
+
*Requires:* Each of these operators may only be instantiated for a type
|
| 61 |
+
`T` to which the indicated operator can be applied and for which the
|
| 62 |
+
indicated operator returns a value which is of type `T` or which can be
|
| 63 |
unambiguously implicitly converted to type `T`.
|
| 64 |
|
| 65 |
+
*Returns:* A `valarray` whose length is equal to the length of the array
|
| 66 |
+
argument. Each element of the returned array is initialized with the
|
| 67 |
+
result of applying the indicated operator to the corresponding element
|
| 68 |
+
of the array argument and the non-array argument.
|
| 69 |
|