<ctgmath>

实际上,包括 C++ 标准库标头 <complex><cmath>,用于提供等效于 <tgmath.h> 的泛型类型算术宏。

注意

C 标准库 <tgmath.h> 标头不包括在 <ctgmath> 内,因为它实际上被 <complex><cmath> 中的 C++ 重载所取代。 这使得 <ctgmath> 标头冗余。 <tgmath.h> 标头在 C++ 中已弃用。 <ctgmath> 标头在 C++17 中已弃用,并在草案 C++20 标准中已删除。

要求

标头<ctgmath>

命名空间:std

备注

C 标准库标头 <tgmath.h> 的功能通过<complex><cmath> 中的重载来提供。

另请参阅

<complex>
<cmath>
头文件引用
C++ 标准库概述
C++ 标准库中的线程安全