From Jason Turner

[complex.member.ops]

Diff to HTML by rtfpessoa

tmp/tmpynbnqxgj/{from.md → to.md} RENAMED
@@ -36,10 +36,19 @@ constexpr complex& operator/=(const T& rhs);
36
  *Effects:* Divides the scalar value `rhs` into the complex value `*this`
37
  and stores the result in `*this`.
38
 
39
  *Returns:* `*this`.
40
 
 
 
 
 
 
 
 
 
 
41
  ``` cpp
42
  template<class X> constexpr complex& operator+=(const complex<X>& rhs);
43
  ```
44
 
45
  *Effects:* Adds the complex value `rhs` to the complex value `*this` and
 
36
  *Effects:* Divides the scalar value `rhs` into the complex value `*this`
37
  and stores the result in `*this`.
38
 
39
  *Returns:* `*this`.
40
 
41
+ ``` cpp
42
+ template<class X> constexpr complex& operator=(const complex<X>& rhs);
43
+ ```
44
+
45
+ *Effects:* Assigns the value `rhs.real()` to the real part and the value
46
+ `rhs.imag()` to the imaginary part of the complex value `*this`.
47
+
48
+ *Returns:* `*this`.
49
+
50
  ``` cpp
51
  template<class X> constexpr complex& operator+=(const complex<X>& rhs);
52
  ```
53
 
54
  *Effects:* Adds the complex value `rhs` to the complex value `*this` and