tmp/tmphipab846/{from.md → to.md}
RENAMED
|
@@ -5,16 +5,16 @@ namespace std {
|
|
| 5 |
template<> class complex<float> {
|
| 6 |
public:
|
| 7 |
typedef float value_type;
|
| 8 |
|
| 9 |
constexpr complex(float re = 0.0f, float im = 0.0f);
|
| 10 |
-
|
| 11 |
-
|
| 12 |
|
| 13 |
-
constexpr float real();
|
| 14 |
void real(float);
|
| 15 |
-
constexpr float imag();
|
| 16 |
void imag(float);
|
| 17 |
|
| 18 |
complex<float>& operator= (float);
|
| 19 |
complex<float>& operator+=(float);
|
| 20 |
complex<float>& operator-=(float);
|
|
@@ -33,15 +33,15 @@ namespace std {
|
|
| 33 |
public:
|
| 34 |
typedef double value_type;
|
| 35 |
|
| 36 |
constexpr complex(double re = 0.0, double im = 0.0);
|
| 37 |
constexpr complex(const complex<float>&);
|
| 38 |
-
|
| 39 |
|
| 40 |
-
constexpr double real();
|
| 41 |
void real(double);
|
| 42 |
-
constexpr double imag();
|
| 43 |
void imag(double);
|
| 44 |
|
| 45 |
complex<double>& operator= (double);
|
| 46 |
complex<double>& operator+=(double);
|
| 47 |
complex<double>& operator-=(double);
|
|
@@ -62,13 +62,13 @@ namespace std {
|
|
| 62 |
|
| 63 |
constexpr complex(long double re = 0.0L, long double im = 0.0L);
|
| 64 |
constexpr complex(const complex<float>&);
|
| 65 |
constexpr complex(const complex<double>&);
|
| 66 |
|
| 67 |
-
constexpr long double real();
|
| 68 |
void real(long double);
|
| 69 |
-
constexpr long double imag();
|
| 70 |
void imag(long double);
|
| 71 |
|
| 72 |
complex<long double>& operator=(const complex<long double>&);
|
| 73 |
complex<long double>& operator= (long double);
|
| 74 |
complex<long double>& operator+=(long double);
|
|
|
|
| 5 |
template<> class complex<float> {
|
| 6 |
public:
|
| 7 |
typedef float value_type;
|
| 8 |
|
| 9 |
constexpr complex(float re = 0.0f, float im = 0.0f);
|
| 10 |
+
constexpr explicit complex(const complex<double>&);
|
| 11 |
+
constexpr explicit complex(const complex<long double>&);
|
| 12 |
|
| 13 |
+
constexpr float real() const;
|
| 14 |
void real(float);
|
| 15 |
+
constexpr float imag() const;
|
| 16 |
void imag(float);
|
| 17 |
|
| 18 |
complex<float>& operator= (float);
|
| 19 |
complex<float>& operator+=(float);
|
| 20 |
complex<float>& operator-=(float);
|
|
|
|
| 33 |
public:
|
| 34 |
typedef double value_type;
|
| 35 |
|
| 36 |
constexpr complex(double re = 0.0, double im = 0.0);
|
| 37 |
constexpr complex(const complex<float>&);
|
| 38 |
+
constexpr explicit complex(const complex<long double>&);
|
| 39 |
|
| 40 |
+
constexpr double real() const;
|
| 41 |
void real(double);
|
| 42 |
+
constexpr double imag() const;
|
| 43 |
void imag(double);
|
| 44 |
|
| 45 |
complex<double>& operator= (double);
|
| 46 |
complex<double>& operator+=(double);
|
| 47 |
complex<double>& operator-=(double);
|
|
|
|
| 62 |
|
| 63 |
constexpr complex(long double re = 0.0L, long double im = 0.0L);
|
| 64 |
constexpr complex(const complex<float>&);
|
| 65 |
constexpr complex(const complex<double>&);
|
| 66 |
|
| 67 |
+
constexpr long double real() const;
|
| 68 |
void real(long double);
|
| 69 |
+
constexpr long double imag() const;
|
| 70 |
void imag(long double);
|
| 71 |
|
| 72 |
complex<long double>& operator=(const complex<long double>&);
|
| 73 |
complex<long double>& operator= (long double);
|
| 74 |
complex<long double>& operator+=(long double);
|