tmp/tmpp70r3jjh/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
### Suffixes for complex number literals <a id="complex.literals">[[complex.literals]]</a>
|
| 2 |
+
|
| 3 |
+
This section describes literal suffixes for constructing complex number
|
| 4 |
+
literals. The suffixes `i`, `il`, and `if` create complex numbers of the
|
| 5 |
+
types `complex<double>`, `complex<long double>`, and `complex<float>`
|
| 6 |
+
respectively, with their imaginary part denoted by the given literal
|
| 7 |
+
number and the real part being zero.
|
| 8 |
+
|
| 9 |
+
``` cpp
|
| 10 |
+
constexpr complex<long double> operator""il(long double d);
|
| 11 |
+
constexpr complex<long double> operator""il(unsigned long long d);
|
| 12 |
+
```
|
| 13 |
+
|
| 14 |
+
*Returns:* `complex<long double>{0.0L, static_cast<long double>(d)}`.
|
| 15 |
+
|
| 16 |
+
``` cpp
|
| 17 |
+
constexpr complex<double> operator""i(long double d);
|
| 18 |
+
constexpr complex<double> operator""i(unsigned long long d);
|
| 19 |
+
```
|
| 20 |
+
|
| 21 |
+
*Returns:* `complex<double>{0.0, static_cast<double>(d)}`.
|
| 22 |
+
|
| 23 |
+
``` cpp
|
| 24 |
+
constexpr complex<float> operator""if(long double d);
|
| 25 |
+
constexpr complex<float> operator""if(unsigned long long d);
|
| 26 |
+
```
|
| 27 |
+
|
| 28 |
+
*Returns:* `complex<float>{0.0f, static_cast<float>(d)}`.
|
| 29 |
+
|