1.3 KiB
1.3 KiB
[cmplx.over]
29 Numerics library [numerics]
29.4 Complex numbers [complex.numbers]
29.4.10 Additional overloads [cmplx.over]
The following function templates have additional constexpr overloads:arg norm conj proj imag real
The additional constexpr overloads are sufficient to ensure:
-
If the argument has a floating-point type T, then it is effectively cast to complex.
-
Otherwise, if the argument has integer type, then it is effectively cast to complex.
Function template pow has additional constexpr overloads sufficient to ensure, for a call with one argument of type complex and the other argument of type T2 or complex, both arguments are effectively cast to complex<common_type_t<T1, T3>>, where T3 isdouble if T2 is an integer type and T2 otherwise.
If common_type_t<T1, T3> is not well-formed, then the program is ill-formed.