We recommend using Visual Studio 2017

<ctgmath>

 

The latest version of this topic can be found at <ctgmath>.

In effect, includes the Standard C++ library headers <ccomplex> and <cmath>, which provide type-generic math macros equivalent to <tgmath.h>.

#include <ctgmath>  
  

The functionality of the Standard C library header <tgmath.h> is provided by overloads in <ccomplex> and <cmath>.

Including this header ensures that the names declared using external linkage in the Standard C library header are declared in the std namespace.

<ccomplex>
<cmath>
Header Files Reference
STL Overview
Thread Safety in the C++ Standard Library

Show: