tmp/tmph4qaz8zz/{from.md → to.md}
RENAMED
|
@@ -1,17 +1,17 @@
|
|
| 1 |
### `complex` member functions <a id="complex.members">[[complex.members]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
-
template<class T> complex(const T& re = T(), const T& im = T());
|
| 5 |
```
|
| 6 |
|
| 7 |
*Effects:* Constructs an object of class `complex`.
|
| 8 |
|
| 9 |
`real() == re && imag() == im`.
|
| 10 |
|
| 11 |
``` cpp
|
| 12 |
-
T real() const;
|
| 13 |
```
|
| 14 |
|
| 15 |
*Returns:* The value of the real component.
|
| 16 |
|
| 17 |
``` cpp
|
|
@@ -19,11 +19,11 @@ void real(T val);
|
|
| 19 |
```
|
| 20 |
|
| 21 |
*Effects:* Assigns `val` to the real component.
|
| 22 |
|
| 23 |
``` cpp
|
| 24 |
-
T imag() const;
|
| 25 |
```
|
| 26 |
|
| 27 |
*Returns:* The value of the imaginary component.
|
| 28 |
|
| 29 |
``` cpp
|
|
|
|
| 1 |
### `complex` member functions <a id="complex.members">[[complex.members]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
+
template<class T> constexpr complex(const T& re = T(), const T& im = T());
|
| 5 |
```
|
| 6 |
|
| 7 |
*Effects:* Constructs an object of class `complex`.
|
| 8 |
|
| 9 |
`real() == re && imag() == im`.
|
| 10 |
|
| 11 |
``` cpp
|
| 12 |
+
constexpr T real() const;
|
| 13 |
```
|
| 14 |
|
| 15 |
*Returns:* The value of the real component.
|
| 16 |
|
| 17 |
``` cpp
|
|
|
|
| 19 |
```
|
| 20 |
|
| 21 |
*Effects:* Assigns `val` to the real component.
|
| 22 |
|
| 23 |
``` cpp
|
| 24 |
+
constexpr T imag() const;
|
| 25 |
```
|
| 26 |
|
| 27 |
*Returns:* The value of the imaginary component.
|
| 28 |
|
| 29 |
``` cpp
|