From Jason Turner

[valarray.binary]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp20sd6e2p/{from.md → to.md} +16 -18
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 `T` to which
27
- the indicated operator can be applied and for which the indicated
28
- operator returns a value which is of type `T` or which can be
29
- unambiguously implicitly converted to type `T`.
 
30
 
31
- Each of these operators returns an array whose length is equal to the
32
- lengths of the argument arrays. Each element of the returned array is
33
- initialized with the result of applying the indicated operator to the
34
- corresponding elements of the argument arrays.
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 `T` to which
63
- the indicated operator can be applied and for which the indicated
64
- operator returns a value which is of type `T` or which can be
65
  unambiguously implicitly converted to type `T`.
66
 
67
- Each of these operators returns an array whose length is equal to the
68
- length of the array argument. Each element of the returned array is
69
- initialized with the result of applying the indicated operator to the
70
- corresponding element of the array argument and the non-array argument.
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