tmp/tmpuoi7sq85/{from.md → to.md}
RENAMED
|
@@ -1,14 +1,14 @@
|
|
| 1 |
### General <a id="complex.numbers.general">[[complex.numbers.general]]</a>
|
| 2 |
|
| 3 |
The header `<complex>` defines a class template, and numerous functions
|
| 4 |
for representing and manipulating complex numbers.
|
| 5 |
|
| 6 |
-
The effect of instantiating the template `complex` for any
|
| 7 |
-
not a cv-unqualified floating-point type
|
| 8 |
-
unspecified. Specializations of `complex` for
|
| 9 |
-
floating-point types are trivially
|
| 10 |
[[term.literal.type]].
|
| 11 |
|
| 12 |
If the result of a function is not mathematically defined or not in the
|
| 13 |
range of representable values for its type, the behavior is undefined.
|
| 14 |
|
|
@@ -21,10 +21,10 @@ If `z` is an lvalue of type cv `complex<T>` then:
|
|
| 21 |
`z`.
|
| 22 |
|
| 23 |
Moreover, if `a` is an expression of type cv `complex<T>*` and the
|
| 24 |
expression `a[i]` is well-defined for an integer expression `i`, then:
|
| 25 |
|
| 26 |
-
- `reinterpret_cast<cv T*>(a)[2*i]` designates the real part of
|
| 27 |
-
and
|
| 28 |
-
- `reinterpret_cast<cv T*>(a)[2*i + 1]` designates the imaginary part
|
| 29 |
-
`a[i]`.
|
| 30 |
|
|
|
|
| 1 |
### General <a id="complex.numbers.general">[[complex.numbers.general]]</a>
|
| 2 |
|
| 3 |
The header `<complex>` defines a class template, and numerous functions
|
| 4 |
for representing and manipulating complex numbers.
|
| 5 |
|
| 6 |
+
The effect of instantiating the primary template of `complex` for any
|
| 7 |
+
type that is not a cv-unqualified floating-point type
|
| 8 |
+
[[basic.fundamental]] is unspecified. Specializations of `complex` for
|
| 9 |
+
cv-unqualified floating-point types are trivially copyable literal types
|
| 10 |
[[term.literal.type]].
|
| 11 |
|
| 12 |
If the result of a function is not mathematically defined or not in the
|
| 13 |
range of representable values for its type, the behavior is undefined.
|
| 14 |
|
|
|
|
| 21 |
`z`.
|
| 22 |
|
| 23 |
Moreover, if `a` is an expression of type cv `complex<T>*` and the
|
| 24 |
expression `a[i]` is well-defined for an integer expression `i`, then:
|
| 25 |
|
| 26 |
+
- `reinterpret_cast<cv T*>(a)[2 * i]` designates the real part of
|
| 27 |
+
`a[i]`, and
|
| 28 |
+
- `reinterpret_cast<cv T*>(a)[2 * i + 1]` designates the imaginary part
|
| 29 |
+
of `a[i]`.
|
| 30 |
|