tmp/tmph8ju6ilb/{from.md → to.md}
RENAMED
|
@@ -2,11 +2,11 @@
|
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
namespace std {
|
| 5 |
template<> class complex<float> {
|
| 6 |
public:
|
| 7 |
-
|
| 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 |
|
|
@@ -29,11 +29,11 @@ namespace std {
|
|
| 29 |
template<class X> complex<float>& operator/=(const complex<X>&);
|
| 30 |
};
|
| 31 |
|
| 32 |
template<> class complex<double> {
|
| 33 |
public:
|
| 34 |
-
|
| 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 |
|
|
@@ -56,11 +56,11 @@ namespace std {
|
|
| 56 |
template<class X> complex<double>& operator/=(const complex<X>&);
|
| 57 |
};
|
| 58 |
|
| 59 |
template<> class complex<long double> {
|
| 60 |
public:
|
| 61 |
-
|
| 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 |
|
|
|
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
namespace std {
|
| 5 |
template<> class complex<float> {
|
| 6 |
public:
|
| 7 |
+
using value_type = float;
|
| 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 |
|
|
|
|
| 29 |
template<class X> complex<float>& operator/=(const complex<X>&);
|
| 30 |
};
|
| 31 |
|
| 32 |
template<> class complex<double> {
|
| 33 |
public:
|
| 34 |
+
using value_type = double;
|
| 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 |
|
|
|
|
| 56 |
template<class X> complex<double>& operator/=(const complex<X>&);
|
| 57 |
};
|
| 58 |
|
| 59 |
template<> class complex<long double> {
|
| 60 |
public:
|
| 61 |
+
using value_type = long 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 |
|