From Jason Turner

[complex.member.ops]

Diff to HTML by rtfpessoa

tmp/tmpf4fh1aus/{from.md → to.md} RENAMED
@@ -37,38 +37,38 @@ complex<T>& operator/=(const T& rhs);
37
  and stores the result in `*this`.
38
 
39
  *Returns:* `*this`.
40
 
41
  ``` cpp
42
- complex<T>& operator+=(const complex<T>& rhs);
43
  ```
44
 
45
  *Effects:* Adds the complex value `rhs` to the complex value `*this` and
46
  stores the sum in `*this`.
47
 
48
  *Returns:* `*this`.
49
 
50
  ``` cpp
51
- complex<T>& operator-=(const complex<T>& rhs);
52
  ```
53
 
54
  *Effects:* Subtracts the complex value `rhs` from the complex value
55
  `*this` and stores the difference in `*this`.
56
 
57
  *Returns:* `*this`.
58
 
59
  ``` cpp
60
- complex<T>& operator*=(const complex<T>& rhs);
61
  ```
62
 
63
  *Effects:* Multiplies the complex value `rhs` by the complex value
64
  `*this` and stores the product in `*this`.
65
 
66
  *Returns:* `*this`.
67
 
68
  ``` cpp
69
- complex<T>& operator/=(const complex<T>& rhs);
70
  ```
71
 
72
  *Effects:* Divides the complex value `rhs` into the complex value
73
  `*this` and stores the quotient in `*this`.
74
 
 
37
  and stores the result in `*this`.
38
 
39
  *Returns:* `*this`.
40
 
41
  ``` cpp
42
+ template<class X> complex<T>& operator+=(const complex<X>& rhs);
43
  ```
44
 
45
  *Effects:* Adds the complex value `rhs` to the complex value `*this` and
46
  stores the sum in `*this`.
47
 
48
  *Returns:* `*this`.
49
 
50
  ``` cpp
51
+ template<class X> complex<T>& operator-=(const complex<X>& rhs);
52
  ```
53
 
54
  *Effects:* Subtracts the complex value `rhs` from the complex value
55
  `*this` and stores the difference in `*this`.
56
 
57
  *Returns:* `*this`.
58
 
59
  ``` cpp
60
+ template<class X> complex<T>& operator*=(const complex<X>& rhs);
61
  ```
62
 
63
  *Effects:* Multiplies the complex value `rhs` by the complex value
64
  `*this` and stores the product in `*this`.
65
 
66
  *Returns:* `*this`.
67
 
68
  ``` cpp
69
+ template<class X> complex<T>& operator/=(const complex<X>& rhs);
70
  ```
71
 
72
  *Effects:* Divides the complex value `rhs` into the complex value
73
  `*this` and stores the quotient in `*this`.
74