Files
2025-10-25 03:02:53 +03:00

1.3 KiB

[cmplx.over]

29 Numerics library [numerics]

29.4 Complex numbers [complex.numbers]

29.4.10 Additional overloads [cmplx.over]

1

#

The following function templates have additional constexpr overloads:arg norm conj proj imag real

2

#

The additional constexpr overloads are sufficient to ensure:

  • (2.1)

    If the argument has a floating-point type T, then it is effectively cast to complex.

  • (2.2)

    Otherwise, if the argument has integer type, then it is effectively cast to complex.

3

#

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.