Share via


<cmath>

Defines the macros traditionally defined in the Standard C library header <math.h>.

#if <TRADITIONAL C HEADERS>
   #include <math.h>
namespace std {
   using ::abs; 
   using ::acos; 
   using ::acosf; 
   using ::acosl; 
   using ::asin;
   using ::asinf;
   using ::asinl;
   using ::atan; 
   using ::atan2; 
   using ::atan2f; 
   using ::atan2l; 
   using ::atanf; 
   using ::atanl; 
   using ::ceil;
   using ::ceilf;
   using ::ceill;
   using ::cos; 
   using ::cosf; 
   using ::cosh; 
   using ::coshf; 
   using ::coshl; 
   using ::cosl; 
   using ::exp;
   using ::expf;
   using ::expl;
   using ::fabs; 
   using ::fabsf; 
   using ::fabsl; 
   using ::floor; 
   using ::floorf; 
   using ::floorl; 
   using ::fmod;
   using ::fmodf;
   using ::fmodl;
   using ::frexp; 
   using ::frexpf; 
   using ::frexpl; 
   using ::ldexp; 
   using ::ldexpf; 
   using ::ldexpl; 
   using ::log;
   using ::log10; 
   using ::log10f; 
   using ::log10l; 
   using ::logf;
   using ::logl;
   using ::modf; 
   using ::modff; 
   using ::modfl; 
   using ::pow;
   using ::powf;
   using ::powl;
   using ::sin; 
   using ::sinf; 
   using ::sinh; 
   using ::sinhf; 
   using ::sinhl; 
   using ::sinl; 
   using ::sqrt;
   using ::sqrtf;
   using ::sqrtl;
   using ::tan; 
   using ::tanf; 
   using ::tanh;
   using ::tanhf;
   using ::tanhl;
   using ::tanl; 
}
#endif

Remarks

Including this header also ensures that the names declared with external linkage in the Standard C library header are declared in the std namespace. In this implementation, the names may or may not also be declared in the global namespace, depending on the specific translation environment.

See Also

Reference

Standard C++ Library Overview

Thread Safety in the Standard C++ Library

Other Resources

Header Files