Export (0) Print
Expand All
6 out of 28 rated this helpful - Rate this topic

<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

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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.