From Jason Turner

[complex.members]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpncv2lvhd/{from.md → to.md} +12 -1
tmp/tmpncv2lvhd/{from.md → to.md} RENAMED
@@ -1,13 +1,24 @@
1
  ### 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
  *Ensures:* `real() == re && imag() == im` is `true`.
8
 
 
 
 
 
 
 
 
 
 
 
 
9
  ``` cpp
10
  constexpr T real() const;
11
  ```
12
 
13
  *Returns:* The value of the real component.
 
1
  ### Member functions <a id="complex.members">[[complex.members]]</a>
2
 
3
  ``` cpp
4
+ constexpr complex(const T& re = T(), const T& im = T());
5
  ```
6
 
7
  *Ensures:* `real() == re && imag() == im` is `true`.
8
 
9
+ ``` cpp
10
+ template<class X> constexpr explicit(see below) complex(const complex<X>& other);
11
+ ```
12
+
13
+ *Effects:* Initializes the real part with `other.real()` and the
14
+ imaginary part with `other.imag()`.
15
+
16
+ *Remarks:* The expression inside `explicit` evaluates to `false` if and
17
+ only if the floating-point conversion rank of `T` is greater than or
18
+ equal to the floating-point conversion rank of `X`.
19
+
20
  ``` cpp
21
  constexpr T real() const;
22
  ```
23
 
24
  *Returns:* The value of the real component.