728x90
728x170
*[header][C library] ctgmath (tgmath.h) (C++11)
<ctgmath> (tgmath.h)
Type-generic math
This header defines macro functions that correspond to the functions in
Every function in
Each of the arguments provided for these generic parameters that is of an integer type is casted to a
This header automatically includes
<math.h>
, but which can take other non-floating point types as arguments:Every function in
<math.h>
that takes at least one double
as argument (except modf) is defined in <tgmath.h>
as a macro with the same semantics but taking generic parameters instead:Each of the arguments provided for these generic parameters that is of an integer type is casted to a
double
; Arguments of floating-point types are used without transformation (directly as float
, double
or long double
).This header automatically includes
<math.h>
and <complex.h>
: The type-generic function can also take complex values if the function exists in <complex.h>
(prefixed with a "c"
character).This header simply includes
The functionality provided by this C header is already provided by the proper overloads in
<cmath>
and <ccomplex>
.The functionality provided by this C header is already provided by the proper overloads in
<cmath>
and <ccomplex>
in C++.728x90
그리드형(광고전용)
'Programming > C++' 카테고리의 다른 글
[header][C library] cwctype (wctype.h) (0) | 2017.11.08 |
---|---|
[header][C library] cwchar (wchar.h) (0) | 2017.11.08 |
[header][C library] cuchar (uchar.h) (C++11) (0) | 2017.11.08 |
[header][C library] ctime (time.h) (0) | 2017.11.08 |
[header][C library] cstring (string.h) (0) | 2017.11.08 |
[header][C library] cstdlib (stdlib.h) (0) | 2017.11.08 |
[header][C library] cstdio (stdio.h) (0) | 2017.11.08 |
[header][C library] cstdint (stdint.h) (C++11) (0) | 2017.11.08 |