tmp/tmpd5etc_8b/{from.md → to.md}
RENAMED
|
@@ -1,74 +1,74 @@
|
|
| 1 |
-
###
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
-
complex
|
| 5 |
```
|
| 6 |
|
| 7 |
*Effects:* Adds the scalar value `rhs` to the real part of the complex
|
| 8 |
value `*this` and stores the result in the real part of `*this`, leaving
|
| 9 |
the imaginary part unchanged.
|
| 10 |
|
| 11 |
*Returns:* `*this`.
|
| 12 |
|
| 13 |
``` cpp
|
| 14 |
-
complex
|
| 15 |
```
|
| 16 |
|
| 17 |
*Effects:* Subtracts the scalar value `rhs` from the real part of the
|
| 18 |
complex value `*this` and stores the result in the real part of `*this`,
|
| 19 |
leaving the imaginary part unchanged.
|
| 20 |
|
| 21 |
*Returns:* `*this`.
|
| 22 |
|
| 23 |
``` cpp
|
| 24 |
-
complex
|
| 25 |
```
|
| 26 |
|
| 27 |
*Effects:* Multiplies the scalar value `rhs` by the complex value
|
| 28 |
`*this` and stores the result in `*this`.
|
| 29 |
|
| 30 |
*Returns:* `*this`.
|
| 31 |
|
| 32 |
``` cpp
|
| 33 |
-
complex
|
| 34 |
```
|
| 35 |
|
| 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> complex
|
| 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
|
| 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
|
| 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
|
| 70 |
```
|
| 71 |
|
| 72 |
*Effects:* Divides the complex value `rhs` into the complex value
|
| 73 |
`*this` and stores the quotient in `*this`.
|
| 74 |
|
|
|
|
| 1 |
+
### Member operators <a id="complex.member.ops">[[complex.member.ops]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
+
constexpr complex& operator+=(const T& rhs);
|
| 5 |
```
|
| 6 |
|
| 7 |
*Effects:* Adds the scalar value `rhs` to the real part of the complex
|
| 8 |
value `*this` and stores the result in the real part of `*this`, leaving
|
| 9 |
the imaginary part unchanged.
|
| 10 |
|
| 11 |
*Returns:* `*this`.
|
| 12 |
|
| 13 |
``` cpp
|
| 14 |
+
constexpr complex& operator-=(const T& rhs);
|
| 15 |
```
|
| 16 |
|
| 17 |
*Effects:* Subtracts the scalar value `rhs` from the real part of the
|
| 18 |
complex value `*this` and stores the result in the real part of `*this`,
|
| 19 |
leaving the imaginary part unchanged.
|
| 20 |
|
| 21 |
*Returns:* `*this`.
|
| 22 |
|
| 23 |
``` cpp
|
| 24 |
+
constexpr complex& operator*=(const T& rhs);
|
| 25 |
```
|
| 26 |
|
| 27 |
*Effects:* Multiplies the scalar value `rhs` by the complex value
|
| 28 |
`*this` and stores the result in `*this`.
|
| 29 |
|
| 30 |
*Returns:* `*this`.
|
| 31 |
|
| 32 |
``` cpp
|
| 33 |
+
constexpr complex& operator/=(const T& rhs);
|
| 34 |
```
|
| 35 |
|
| 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
|
| 46 |
stores the sum in `*this`.
|
| 47 |
|
| 48 |
*Returns:* `*this`.
|
| 49 |
|
| 50 |
``` cpp
|
| 51 |
+
template<class X> constexpr complex& 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> constexpr complex& 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> constexpr complex& 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 |
|