<ctgmath>
In effect, includes the C++ standard library headers <complex>
and <cmath>
, which provide type-generic math macros equivalent to <tgmath.h>
.
Note
The C standard library <tgmath.h>
header isn't included by <ctgmath>
because it's effectively replaced by the C++ overloads in <complex>
and <cmath>
. That makes the <ctgmath>
header redundant. The <tgmath.h>
header is deprecated in C++. The <ctgmath>
header is deprecated in C++17 and removed in the draft C++20 standard.
Requirements
Header: <ctgmath>
Namespace: std
Remarks
The functionality of the C standard library header <tgmath.h>
is provided by the overloads in <complex>
and <cmath>
.
See also
<complex>
<cmath>
Header files reference
C++ standard library overview
Thread safety in the C++ standard library
Feedback
https://aka.ms/ContentUserFeedback.
În curând: Pe parcursul anului 2024, vom elimina treptat Probleme legate de GitHub ca mecanism de feedback pentru conținut și îl vom înlocui cu un nou sistem de feedback. Pentru mai multe informații, consultați:Trimiteți și vizualizați feedback pentru